Y
Yan
I want to begin a project to write a proxy for instant messaging
protocols in C and make it posix compliant. I originally wanted to write
the proxy for one protocol, but not im thinking if i was to write one i
want to make it modular to handle a few. The platform of development
will be FreeBSD, but that's really neither here nor there. My question
is as follows:
- What packages/language features can I use to add this modularity?
- Make each protocol a dynamically linked library? (preferred i guess)
use libtool?
- What is the preferred (proper) way to parse data, exctract protocol
information (maybe assign each session a protocol based on
port/initialization packets) and then pass each packet to a handler?
Basically, how do i properly interface with each protocol handler?
Ive been a UNIX user for a few years, and a C rookie for a few as well,
and want to actually write something to progress my knowledge and gain
experience. Any help would be appreciated. I understand that the fact
that I will be writing this for unix or making it conform to posix is
irrelevant for this group, but i thought it might narrow down to what i
actually want to do.
thanks in advance
protocols in C and make it posix compliant. I originally wanted to write
the proxy for one protocol, but not im thinking if i was to write one i
want to make it modular to handle a few. The platform of development
will be FreeBSD, but that's really neither here nor there. My question
is as follows:
- What packages/language features can I use to add this modularity?
- Make each protocol a dynamically linked library? (preferred i guess)
use libtool?
- What is the preferred (proper) way to parse data, exctract protocol
information (maybe assign each session a protocol based on
port/initialization packets) and then pass each packet to a handler?
Basically, how do i properly interface with each protocol handler?
Ive been a UNIX user for a few years, and a C rookie for a few as well,
and want to actually write something to progress my knowledge and gain
experience. Any help would be appreciated. I understand that the fact
that I will be writing this for unix or making it conform to posix is
irrelevant for this group, but i thought it might narrow down to what i
actually want to do.
thanks in advance