Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

MCSocketSerializer Class Reference

A serializer (see MCSerializer) which serializes objects to a socket. More...

#include <mcllib/MCSocketSerializer.h>

Inheritance diagram for MCSocketSerializer:

MCSerializer MCBase List of all members.

Public Member Functions

 MCSocketSerializer (MCSocket *pSock, bool hasType=false, mcinterval_t timeout=MCIntervalInfinite)
 Construct a socket serializer.

Detailed Description

A serializer (see MCSerializer) which serializes objects to a socket.


Constructor & Destructor Documentation

MCSocketSerializer MCSocket pSock,
bool  hasType = false,
mcinterval_t  timeout = MCIntervalInfinite
 

Construct a socket serializer.

Parameters:
pSock the socket object to serialize data to
hasType if true, on output, type information will be written with the data. If false, type information will not be written with the data. Type information allows serialized sockets to be read by applications which do not understand the format of the data. A socket serializer must specify the same value for hasType for both writing and reading.
timeout the number of milliseconds to wait for input or output operations to complete. If an operation does not complete within the specified time an MCTimedOut exception is thrown.


Generated on Wed Jan 12 19:05:50 2005 for MCLLIB by  doxygen 1.3.9.1