spxsock.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034 #ifndef PTLIB_SPXSOCKET_H
00035 #define PTLIB_SPXSOCKET_H
00036
00037 #ifdef P_USE_PRAGMA
00038 #pragma interface
00039 #endif
00040
00041 #include <ptlib/ipxsock.h>
00042
00043
00047 class PSPXSocket : public PIPXSocket
00048 {
00049 PCLASSINFO(PSPXSocket, PIPXSocket);
00050
00051 public:
00060 PSPXSocket(
00061 WORD port = 0
00062 );
00064
00080 virtual PBoolean Listen(
00081 unsigned queueSize = 5,
00082 WORD port = 0,
00083 Reusability reuse = AddressIsExclusive
00084 );
00085
00100 virtual PBoolean Accept(
00101 PSocket & socket
00102 );
00104
00105 protected:
00106 virtual PBoolean OpenSocket();
00107 virtual const char * GetProtocolName() const;
00108
00109
00110
00111 #ifdef _WIN32
00112 #include "msos/ptlib/spxsock.h"
00113 #else
00114 #include "unix/ptlib/spxsock.h"
00115 #endif
00116 };
00117
00118
00119 #endif // PTLIB_SPXSOCKET_H
00120
00121
00122