PTLib
Version 2.10.4
Main Page
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
ipdsock.h
Go to the documentation of this file.
1
/*
2
* ipdsock.h
3
*
4
* IP Datagram socket I/O channel class.
5
*
6
* Portable Windows Library
7
*
8
* Copyright (c) 1993-1998 Equivalence Pty. Ltd.
9
*
10
* The contents of this file are subject to the Mozilla Public License
11
* Version 1.0 (the "License"); you may not use this file except in
12
* compliance with the License. You may obtain a copy of the License at
13
* http://www.mozilla.org/MPL/
14
*
15
* Software distributed under the License is distributed on an "AS IS"
16
* basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
17
* the License for the specific language governing rights and limitations
18
* under the License.
19
*
20
* The Original Code is Portable Windows Library.
21
*
22
* The Initial Developer of the Original Code is Equivalence Pty. Ltd.
23
*
24
* Portions are Copyright (C) 1993 Free Software Foundation, Inc.
25
* All Rights Reserved.
26
*
27
* Contributor(s): ______________________________________.
28
*
29
* $Revision: 24177 $
30
* $Author: rjongbloed $
31
* $Date: 2010-04-05 06:52:04 -0500 (Mon, 05 Apr 2010) $
32
*/
33
34
#ifndef PTLIB_IPDATAGRAMSOCKET_H
35
#define PTLIB_IPDATAGRAMSOCKET_H
36
37
#ifdef P_USE_PRAGMA
38
#pragma interface
39
#endif
40
41
#include <
ptlib/ipsock.h
>
42
45
class
PIPDatagramSocket
:
public
PIPSocket
46
{
47
PCLASSINFO(
PIPDatagramSocket
,
PIPSocket
);
48
protected
:
52
PIPDatagramSocket
();
53
54
55
public
:
56
// New functions for class
61
virtual
PBoolean
ReadFrom
(
62
void
* buf,
63
PINDEX len,
64
Address
& addr,
65
WORD &
port
66
);
67
72
virtual
PBoolean
WriteTo
(
73
const
void
* buf,
74
PINDEX len,
75
const
Address
& addr,
76
WORD port
77
);
78
79
80
// Include platform dependent part of class
81
#ifdef _WIN32
82
#include "msos/ptlib/ipdsock.h"
83
#else
84
#include "unix/ptlib/ipdsock.h"
85
#endif
86
};
87
88
89
#endif // PTLIB_IPDATAGRAMSOCKET_H
90
91
92
// End Of File ///////////////////////////////////////////////////////////////
include
ptlib
ipdsock.h
Generated on Tue Mar 11 2014 15:09:29 for PTLib by
1.8.1.2