Skip to content
Snippets Groups Projects
Commit 236f986d authored by AndreyL ProductEngine's avatar AndreyL ProductEngine
Browse files

Backed out changeset: 871c2923afce

parent 36e89143
No related branches found
No related tags found
No related merge requests found
...@@ -101,7 +101,7 @@ void ll_debug_socket(const char* msg, apr_socket_t* apr_sock) ...@@ -101,7 +101,7 @@ void ll_debug_socket(const char* msg, apr_socket_t* apr_sock)
/// ///
// static // static
LLSocket::ptr_t LLSocket::create(apr_pool_t* pool, EType type, U16 port, const char *hostname) LLSocket::ptr_t LLSocket::create(apr_pool_t* pool, EType type, U16 port)
{ {
LLSocket::ptr_t rv; LLSocket::ptr_t rv;
apr_socket_t* socket = NULL; apr_socket_t* socket = NULL;
...@@ -150,7 +150,7 @@ LLSocket::ptr_t LLSocket::create(apr_pool_t* pool, EType type, U16 port, const c ...@@ -150,7 +150,7 @@ LLSocket::ptr_t LLSocket::create(apr_pool_t* pool, EType type, U16 port, const c
apr_sockaddr_t* sa = NULL; apr_sockaddr_t* sa = NULL;
status = apr_sockaddr_info_get( status = apr_sockaddr_info_get(
&sa, &sa,
hostname, APR_ANYADDR,
APR_UNSPEC, APR_UNSPEC,
port, port,
0, 0,
......
...@@ -96,14 +96,12 @@ class LLSocket ...@@ -96,14 +96,12 @@ class LLSocket
* and associated with the socket. * and associated with the socket.
* @param type The type of socket to create * @param type The type of socket to create
* @param port The port for the socket * @param port The port for the socket
* @param hostname e.g. APR_ANYADDR to listen openly, or "127.0.0.1"
* @return A valid socket shared pointer if the call worked. * @return A valid socket shared pointer if the call worked.
*/ */
static ptr_t create( static ptr_t create(
apr_pool_t* pool, apr_pool_t* pool,
EType type, EType type,
U16 port = PORT_EPHEMERAL, U16 port = PORT_EPHEMERAL);
const char *hostname = APR_ANYADDR);
/** /**
* @brief Create a LLSocket when you already have an apr socket. * @brief Create a LLSocket when you already have an apr socket.
......
...@@ -914,8 +914,7 @@ namespace tut ...@@ -914,8 +914,7 @@ namespace tut
mSocket = LLSocket::create( mSocket = LLSocket::create(
mPool, mPool,
LLSocket::STREAM_TCP, LLSocket::STREAM_TCP,
SERVER_LISTEN_PORT, SERVER_LISTEN_PORT);
"127.0.0.1");
} }
~pipe_and_pump_fitness() ~pipe_and_pump_fitness()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment