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

MNUDPClientSocket Class Reference

#include <MNUDPSocket.h>

Inheritance diagram for MNUDPClientSocket:

Inheritance graph
[legend]
Collaboration diagram for MNUDPClientSocket:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 MNUDPClientSocket ()
virtual int reader (struct iovec *, int, struct sockaddr_in *&)
virtual int reader (MNRope *&, struct sockaddr_in *&)
virtual void writer ()

Constructor & Destructor Documentation

MNUDPClientSocket::MNUDPClientSocket  )  [inline]
 


Member Function Documentation

virtual int MNUDPClientSocket::reader MNRope *&  ,
struct sockaddr_in *& 
[inline, virtual]
 

Pure virtual function to be overloaded by child classes for receiving data.
Overloaded by child class to receive data that has arrived in buffer that were previously allocated by the caller and passed to the MNSocket in the set_buffers() virtual function.

Parameters:
rope An MNRope structure that contains the receive data chunks and allows the access to these chunks in the same manner as a flat buffer, it support copy-on-write and multiple references to the same data. It is efficient for the callee to keep the rope structure. If it does, the rope parameter must be NULL on return. The callee assumes responsibility for releasing the data in that case. Otherwise, the data is released on return.
dest A sockaddr_in structure containing information about the UDP packet's sender. It is allocated by MNUDPSocket. If the overloading function releases this memory, or if it intends to keep the data, it must set dest=NULL before returning from reader().
Returns:
Should return the number of bytes read.

Implements MNUDPSocket.

virtual int MNUDPClientSocket::reader struct iovec *  ,
int  ,
struct sockaddr_in *& 
[inline, virtual]
 

Pure virtual function to be overloaded by child classes for receiving data.
Overloaded by child class to receive data that has arrived in buffer that were previously allocated by the caller and passed to the MNSocket in the set_buffers() virtual function.

Parameters:
iov Iovec array that has been allocated by a child class in set_buffers. It contains the data, if any.
len The number of bytes read.
dest A sockaddr_in structure containing information about the UDP packet's sender. It is allocated by MNUDPSocket. If the overloading function releases this memory, or if it intends to keep the data, it must set dest=NULL before returning from reader().
Returns:
Should return the number of bytes read.

Implements MNUDPSocket.

virtual void MNUDPClientSocket::writer  )  [inline, virtual]
 

Implements MNUDPSocket.


The documentation for this class was generated from the following file:
Generated on Sun Mar 6 13:36:03 2005 for Komssys by doxygen 1.3.8