reSIProcate
SIP stack, Dialog Usage Manager and related libraries
Loading...
Searching...
No Matches
FakeSelectSocketDescriptor.hxx
Go to the documentation of this file.
1#if !defined(FakeSelectSocketDescriptor_hxx)
2#define FakeSelectSocketDescriptor_hxx
3
4namespace flowmanager
5{
6
18{
19public:
22
23 unsigned int getSocketDescriptor();
24
25 // queues fake data on the descriptor so that it signals
26
27 void send();
28
29 // dequeue fake data from the descriptor
30
31 void receive();
32
33
34private:
35#ifndef WIN32
36
37 int mPipe[2];
38
39#else
40
41 int mSocket;
42
43#endif
44
45};
46
47}
48
49#endif
50
51
52/* ====================================================================
53
54 Copyright (c) 2007-2008, Plantronics, Inc.
55 All rights reserved.
56
57 Redistribution and use in source and binary forms, with or without
58 modification, are permitted provided that the following conditions are
59 met:
60
61 1. Redistributions of source code must retain the above copyright
62 notice, this list of conditions and the following disclaimer.
63
64 2. Redistributions in binary form must reproduce the above copyright
65 notice, this list of conditions and the following disclaimer in the
66 documentation and/or other materials provided with the distribution.
67
68 3. Neither the name of Plantronics nor the names of its contributors
69 may be used to endorse or promote products derived from this
70 software without specific prior written permission.
71
72 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
73 "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
74 LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
75 A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
76 OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
77 SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
78 LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
79 DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
80 THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
81 (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
82 OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
83
84 ==================================================================== */
This class is used to generate a fake socket descriptor than can be used by applications that impleme...
This class is used during media sessions that use Dtls-Srtp for a media transport.
Definition ErrorCode.hxx:4