UDP.h

Go to the documentation of this file.
00001 /*
00002  * $Id: UDP.h 566 2007-12-02 08:20:52Z mindstorm2600 $
00003  */
00004 #ifndef __XVR2_NETWORK_UDP_H__
00005 #define __XVR2_NETWORK_UDP_H__
00006 #include<xvr2/Object.h>
00007 #include<xvr2/Net/IPv4Address.h>
00008 #include<xvr2/Net/OldUDPSocket.h>
00009 #include<xvr2/Net/OldUDPServerSocket.h>
00010 #include<xvr2/Net/NetworkExceptions.h>
00011 
00012 namespace xvr2{
00013         namespace Net{
00014 
00015                 class UDP {
00016                         private:
00017                         protected:
00018                         public:
00021                                 static void send(const OldUDPSocket &s, const void *buf, int size, int flags = 0, int timeout = 0);
00022                                 static void send(const IPv4Address &a, int port, const void *buf, int size, int flags = 0, int timeout = 0);
00025                                 static int receive(const OldUDPServerSocket &s, void *buf, int size, int flags = 0, int timeout = -1);
00026                                 static int receive(const IPv4Address &a, int port, void *buf, int size, int flags = 0, int timeout = -1);
00027                                 static int receive(int port, void *buf, int size, int flags = 0, int timeout = -1);
00028                 };
00029         };
00030 };
00031 
00032 #endif

Generated on Fri Jun 20 22:55:48 2008 for X-VR2 SDK by  doxygen 1.5.5