theNbomr |
09-13-2012 09:36 AM |
sundialsvcs, it is entirely possible that the OP is implementing an well defined protocol, or perhaps an ill defined protocol that is already in use, and which needs to be implemented on his platform. There are many existing communications protocols for which little or no support exists. Don't forget that in the beginning, someone had to write each of those libraries that does the socket-twiddling. If the OP is in fact creating his/her own new protocol, then your advice is well placed.
I would point out that when doing what the OP is proposing, it is prudent to pay attention to the likes of endian-ness and to packing/alignment of structures on various architectures and by various compilers and compiler versions.
--- rod.
|