ipdsock.h

Go to the documentation of this file.
00001 /*
00002  * ipdsock.h
00003  *
00004  * IP Datagram socket I/O 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  * $Revision: 19008 $
00030  * $Author: rjongbloed $
00031  * $Date: 2007-11-29 09:17:41 +0000 (Thu, 29 Nov 2007) $
00032  */
00033 
00034 #ifndef _PIPDATAGRAMSOCKET
00035 #define _PIPDATAGRAMSOCKET
00036 
00037 #ifdef P_USE_PRAGMA
00038 #pragma interface
00039 #endif
00040 
00043 class PIPDatagramSocket : public PIPSocket
00044 {
00045   PCLASSINFO(PIPDatagramSocket, PIPSocket);
00046   protected:
00050     PIPDatagramSocket();
00051 
00052 
00053   public:
00054   // New functions for class
00059     virtual PBoolean ReadFrom(
00060       void * buf,     
00061       PINDEX len,     
00062       Address & addr, 
00063       WORD & port     
00064     );
00065 
00070     virtual PBoolean WriteTo(
00071       const void * buf,   
00072       PINDEX len,         
00073       const Address & addr, 
00074       WORD port           
00075     );
00076 
00077 
00078 // Include platform dependent part of class
00079 #ifdef _WIN32
00080 #include "msos/ptlib/ipdsock.h"
00081 #else
00082 #include "unix/ptlib/ipdsock.h"
00083 #endif
00084 };
00085 
00086 #endif
00087 
00088 // End Of File ///////////////////////////////////////////////////////////////

Generated on Mon Dec 10 11:18:57 2007 for PTLib by  doxygen 1.5.1