Apache Qpid - AMQP Messaging for Java JMS, C++, Python, Ruby, and .NET
Apache Qpid Documentation
Main Page
Modules
Namespaces
Classes
Files
File List
File Members
qpid
sys
posix
PrivatePosix.h
Go to the documentation of this file.
1
#ifndef _sys_posix_PrivatePosix_h
2
#define _sys_posix_PrivatePosix_h
3
4
/*
5
*
6
* Licensed to the Apache Software Foundation (ASF) under one
7
* or more contributor license agreements. See the NOTICE file
8
* distributed with this work for additional information
9
* regarding copyright ownership. The ASF licenses this file
10
* to you under the Apache License, Version 2.0 (the
11
* "License"); you may not use this file except in compliance
12
* with the License. You may obtain a copy of the License at
13
*
14
* http://www.apache.org/licenses/LICENSE-2.0
15
*
16
* Unless required by applicable law or agreed to in writing,
17
* software distributed under the License is distributed on an
18
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
19
* KIND, either express or implied. See the License for the
20
* specific language governing permissions and limitations
21
* under the License.
22
*
23
*/
24
25
#include "
qpid/sys/Time.h
"
26
27
struct
timespec;
28
struct
timeval;
29
struct
addrinfo;
30
31
namespace
qpid {
32
namespace
sys {
33
34
// Private Time related implementation details
35
struct
timespec&
toTimespec
(
struct
timespec& ts,
const
Duration& t);
36
struct
timeval&
toTimeval
(
struct
timeval& tv,
const
Duration& t);
37
Duration
toTime
(
const
struct
timespec& ts);
38
39
// Private SocketAddress details
40
class
SocketAddress;
41
const
struct
addrinfo&
getAddrInfo
(
const
SocketAddress&);
42
43
// Posix fd as an IOHandle
44
class
IOHandle
{
45
public
:
46
IOHandle
(
int
fd0 = -1) :
47
fd
(fd0)
48
{}
49
50
int
fd
;
51
};
52
53
// Dummy IOHandle for places it's required in the API
54
// but we promise not to actually try to do any operations on the IOHandle
55
class
NullIOHandle
:
public
IOHandle
{
56
public
:
57
NullIOHandle
()
58
{}
59
};
60
61
extern
NullIOHandle
DummyIOHandle
;
62
63
}}
64
65
#endif
Qpid C++ API Reference
Generated on Thu Feb 14 2013 for Qpid C++ Client API by
1.8.3