00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011 #ifndef __XPSOCKETURGENTCLASS_H__
00012 #define __XPSOCKETURGENTCLASS_H__
00013
00014 #include "XPSocketClass.h"
00015
00016 namespace RNReplicaNet
00017 {
00018
00025 class XPSocketUrgent : public XPSocket
00026 {
00027 public:
00028 XPSocketUrgent() {};
00029 virtual ~XPSocketUrgent() {};
00030
00038 int Create(const int port = XPSOCK_PORT_ANY);
00039
00045 int SetRawMode(const bool RawMode = true);
00046
00051 int MakeBroadcast(void);
00052
00058 int ProcessACKS(void);
00059
00069 int SendWithACK(const char *data,const int len,const XPAddress &addr);
00070
00076 int Send(const char *data,const XPAddress &addr);
00077
00086 int Send(const char *data,const int len,const XPAddress &addr);
00087
00095 int Recv(char *const data,const int maxlen,XPAddress *const addr);
00096
00101 static int GetMaxPacketSize(void) {return XPSOCK_URGENTMAXPACKETSIZE;};
00102
00103 private:
00104 };
00105
00106 }
00107
00108 #endif