Main Page | Class List | File List | Class Members | File Members

UDPConnection.h

Go to the documentation of this file.
00001 
00007 #ifndef UDPConnection_h_DEFINED
00008 #define UDPConnection_h_DEFINED
00009 
00010 #include <ant.h>
00011 #include <IPAddress.h>
00012 
00014 enum ConnectionState {
00015   CONNECTION_CLOSED,     
00016   CONNECTION_BINDED,     
00017   CONNECTION_WAITING,    
00018   CONNECTION_LISTENING,  
00019   CONNECTION_SENDING,    
00020   CONNECTION_RECEIVING,  
00021   CONNECTION_CLOSING,    
00022   CONNECTION_WAITING_ACK,
00023   CONNECTION_ACK_RESEND  
00024 };
00025 
00027 struct UDPRecvConnection { 
00028   antModuleRef     endpoint;   
00029   ConnectionState  state;      
00031   // receive buffer
00032   antSharedBuffer  recvBuffer; 
00033   byte*            recvData;   
00034   int              recvSize;   
00035 };
00036 
00037 
00039 struct UDPSendConnection {
00040   antModuleRef     endpoint;   
00041   ConnectionState  state;      
00043   // send buffer
00044   antSharedBuffer  sendBuffer; 
00045   byte*            sendData;   
00046 };
00047 
00048 #endif // UDPConnection_h_DEFINED

Generated on Tue Nov 9 17:57:34 2004 for Telepati by  doxygen 1.3.9.1