OldSocket.h

Go to the documentation of this file.
00001 /*
00002  * $Id: OldSocket.h 566 2007-12-02 08:20:52Z mindstorm2600 $
00003  */
00004 #ifndef __OLD_SOCKET_BASE_H__
00005 #define __OLD_SOCKET_BASE_H__
00006 #include<xvr2/Object.h>
00007 #include<xvr2/DataTypes.h>
00008 #include<xvr2/Net/IPv4Address.h>
00009 #include<xvr2/Net/NetworkExceptions.h>
00010 
00011 namespace xvr2{
00012         namespace Net{
00013                 class UDP;
00014 
00022                 class OldSocket:public Object{
00023                         friend class UDP;
00024                         protected:
00029                                 int tsock;
00030                                 struct ::sockaddr_in ipv4addr;
00037                                 int port;
00041                                 int setSockOption(int opname, void *optval, unsigned int siz);
00042                                 int setTCPOption(int opname, void *optval, unsigned int siz);
00043 
00045                                 String string_representation;
00046                         public:
00047                                 OldSocket();
00048                                 /*OldSocket(const IPv4Address &addr, int _port);
00049                                 OldSocket(int _port);*/
00050                                 ~OldSocket();
00053                                 const int getSocketID();
00057                                 int setSoTimeout(int);
00058                 };
00059         };
00060 };
00061 
00062 #endif

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