File tree 4 files changed +16
-0
lines changed
4 files changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -42,6 +42,11 @@ HttpListener::getLocalPort() const {
42
42
return (impl_->getEndpoint ().getPort ());
43
43
}
44
44
45
+ int
46
+ HttpListener::getNative () const {
47
+ return (impl_->getNative ());
48
+ }
49
+
45
50
void
46
51
HttpListener::start () {
47
52
impl_->start ();
Original file line number Diff line number Diff line change @@ -115,6 +115,9 @@ class HttpListener {
115
115
// / @brief Returns local port on which server is listening.
116
116
uint16_t getLocalPort () const ;
117
117
118
+ // / @brief file descriptor of the underlying acceptor socket.
119
+ int getNative () const ;
120
+
118
121
// / @brief Starts accepting new connections.
119
122
// /
120
123
// / This method starts accepting and handling new HTTP connections on
Original file line number Diff line number Diff line change @@ -67,6 +67,11 @@ HttpListenerImpl::getEndpoint() const {
67
67
return (*endpoint_);
68
68
}
69
69
70
+ int
71
+ HttpListenerImpl::getNative () const {
72
+ return (acceptor_ ? acceptor_->getNative () : -1 );
73
+ }
74
+
70
75
void
71
76
HttpListenerImpl::start () {
72
77
try {
Original file line number Diff line number Diff line change @@ -59,6 +59,9 @@ class HttpListenerImpl {
59
59
// / @brief Returns reference to the current listener endpoint.
60
60
const asiolink::TCPEndpoint& getEndpoint () const ;
61
61
62
+ // / @brief file descriptor of the underlying acceptor socket.
63
+ int getNative () const ;
64
+
62
65
// / @brief Starts accepting new connections.
63
66
// /
64
67
// / This method starts accepting and handling new HTTP connections on
You can’t perform that action at this time.
0 commit comments