Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Class Members | File Members

spxsock.h

Go to the documentation of this file.
00001 /*
00002  * spxsock.h
00003  *
00004  * SPX socket channel class
00005  *
00006  * Portable Windows Library
00007  *
00008  * Copyright (c) 1993-1998 Equivalence Pty. Ltd.
00009  *
00010  * The contents of this file are subject to the Mozilla Public License
00011  * Version 1.0 (the "License"); you may not use this file except in
00012  * compliance with the License. You may obtain a copy of the License at
00013  * http://www.mozilla.org/MPL/
00014  *
00015  * Software distributed under the License is distributed on an "AS IS"
00016  * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
00017  * the License for the specific language governing rights and limitations
00018  * under the License.
00019  *
00020  * The Original Code is Portable Windows Library.
00021  *
00022  * The Initial Developer of the Original Code is Equivalence Pty. Ltd.
00023  *
00024  * Portions are Copyright (C) 1993 Free Software Foundation, Inc.
00025  * All Rights Reserved.
00026  *
00027  * Contributor(s): ______________________________________.
00028  *
00029  * $Log: spxsock.h,v $
00030  * Revision 1.9  2003/09/17 05:41:59  csoutheren
00031  * Removed recursive includes
00032  *
00033  * Revision 1.8  2003/09/17 01:18:02  csoutheren
00034  * Removed recursive include file system and removed all references
00035  * to deprecated coooperative threading support
00036  *
00037  * Revision 1.7  2002/09/16 01:08:59  robertj
00038  * Added #define so can select if #pragma interface/implementation is used on
00039  *   platform basis (eg MacOS) rather than compiler, thanks Robert Monaghan.
00040  *
00041  * Revision 1.6  2001/05/22 12:49:32  robertj
00042  * Did some seriously wierd rewrite of platform headers to eliminate the
00043  *   stupid GNU compiler warning about braces not matching.
00044  *
00045  * Revision 1.5  1999/03/09 02:59:51  robertj
00046  * Changed comments to doc++ compatible documentation.
00047  *
00048  * Revision 1.4  1999/02/16 08:11:17  robertj
00049  * MSVC 6.0 compatibility changes.
00050  *
00051  * Revision 1.3  1998/11/30 02:51:59  robertj
00052  * New directory structure
00053  *
00054  * Revision 1.2  1998/09/23 06:21:29  robertj
00055  * Added open source copyright license.
00056  *
00057  * Revision 1.1  1996/09/14 13:00:56  robertj
00058  * Initial revision
00059  *
00060  */
00061 
00062 #ifndef _PSPXSOCKET
00063 #define _PSPXSOCKET
00064 
00065 #ifdef P_USE_PRAGMA
00066 #pragma interface
00067 #endif
00068 
00069 #include <ptlib/ipxsock.h>
00070 
00071 
00075 class PSPXSocket : public PIPXSocket
00076 {
00077   PCLASSINFO(PSPXSocket, PIPXSocket);
00078 
00079   public:
00088     PSPXSocket(
00089       WORD port = 0             
00090     );
00092 
00108     virtual BOOL Listen(
00109       unsigned queueSize = 5,  
00110       WORD port = 0,           
00111       Reusability reuse = AddressIsExclusive 
00112     );
00113 
00128     virtual BOOL Accept(
00129       PSocket & socket          
00130     );
00132 
00133   protected:
00134     virtual BOOL OpenSocket();
00135     virtual const char * GetProtocolName() const;
00136 
00137 
00138 // Include platform dependent part of class
00139 #ifdef _WIN32
00140 #include "msos/ptlib/spxsock.h"
00141 #else
00142 #include "unix/ptlib/spxsock.h"
00143 #endif
00144 };
00145 
00146 #endif
00147 
00148 // End Of File ///////////////////////////////////////////////////////////////

Generated on Mon Feb 21 20:43:10 2005 for PWLib by  doxygen 1.4.1