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.10  2005/11/25 03:43:47  csoutheren
00031  * Fixed function argument comments to be compatible with Doxygen
00032  *
00033  * Revision 1.9  2003/09/17 05:41:59  csoutheren
00034  * Removed recursive includes
00035  *
00036  * Revision 1.8  2003/09/17 01:18:02  csoutheren
00037  * Removed recursive include file system and removed all references
00038  * to deprecated coooperative threading support
00039  *
00040  * Revision 1.7  2002/09/16 01:08:59  robertj
00041  * Added #define so can select if #pragma interface/implementation is used on
00042  *   platform basis (eg MacOS) rather than compiler, thanks Robert Monaghan.
00043  *
00044  * Revision 1.6  2001/05/22 12:49:32  robertj
00045  * Did some seriously wierd rewrite of platform headers to eliminate the
00046  *   stupid GNU compiler warning about braces not matching.
00047  *
00048  * Revision 1.5  1999/03/09 02:59:51  robertj
00049  * Changed comments to doc++ compatible documentation.
00050  *
00051  * Revision 1.4  1999/02/16 08:11:17  robertj
00052  * MSVC 6.0 compatibility changes.
00053  *
00054  * Revision 1.3  1998/11/30 02:51:59  robertj
00055  * New directory structure
00056  *
00057  * Revision 1.2  1998/09/23 06:21:29  robertj
00058  * Added open source copyright license.
00059  *
00060  * Revision 1.1  1996/09/14 13:00:56  robertj
00061  * Initial revision
00062  *
00063  */
00064 
00065 #ifndef _PSPXSOCKET
00066 #define _PSPXSOCKET
00067 
00068 #ifdef P_USE_PRAGMA
00069 #pragma interface
00070 #endif
00071 
00072 #include <ptlib/ipxsock.h>
00073 
00074 
00078 class PSPXSocket : public PIPXSocket
00079 {
00080   PCLASSINFO(PSPXSocket, PIPXSocket);
00081 
00082   public:
00091     PSPXSocket(
00092       WORD port = 0             
00093     );
00095 
00111     virtual BOOL Listen(
00112       unsigned queueSize = 5,  
00113       WORD port = 0,           
00114       Reusability reuse = AddressIsExclusive 
00115     );
00116 
00131     virtual BOOL Accept(
00132       PSocket & socket          
00133     );
00135 
00136   protected:
00137     virtual BOOL OpenSocket();
00138     virtual const char * GetProtocolName() const;
00139 
00140 
00141 // Include platform dependent part of class
00142 #ifdef _WIN32
00143 #include "msos/ptlib/spxsock.h"
00144 #else
00145 #include "unix/ptlib/spxsock.h"
00146 #endif
00147 };
00148 
00149 #endif
00150 
00151 // End Of File ///////////////////////////////////////////////////////////////

Generated on Fri Mar 7 06:25:03 2008 for PTLib by  doxygen 1.5.1