TCP/IP Sockets in C: Practical Guide for Programmers (Morgan Kaufmann Practical Guides)

TCP/IP Sockets in C: Practical Guide for Programmers (Morgan Kaufmann Practical Guides)

Author:Donahoo, Michael J. & Calvert, Kenneth L. [Donahoo, Michael J.]
Language: eng
Format: azw3
ISBN: 9780080923215
Publisher: Elsevier Science
Published: 2009-03-01T16:00:00+00:00


The method GetNextMsg() reads data from the given stream and places it in the given buffer until it runs out of room or determines that it has received a complete message. It returns the number of bytes placed in the buffer (all framing information is stripped). The method PutMsg() adds framing information to the message contained in the given buffer, and writes both message and framing information to the given stream. Note that neither of these methods needs to know anything about the message content.

The interface to the encoding and parsing code is defined in VoteEncoding.h as follows:



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.