diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/ipc_connecter.cpp | 2 | ||||
-rw-r--r-- | src/ipc_connecter.hpp | 6 | ||||
-rw-r--r-- | src/tcp_connecter.cpp | 2 | ||||
-rw-r--r-- | src/tcp_connecter.hpp | 4 |
4 files changed, 7 insertions, 7 deletions
diff --git a/src/ipc_connecter.cpp b/src/ipc_connecter.cpp index 1d7c386..8e3ea9c 100644 --- a/src/ipc_connecter.cpp +++ b/src/ipc_connecter.cpp @@ -126,7 +126,7 @@ void xs::ipc_connecter_t::start_connecting () return; } - // Connection establishment may be dealyed. Poll for its completion. + // Connection establishment may be delayed. Poll for its completion. else if (rc == -1 && errno == EAGAIN) { handle = add_fd (s); handle_valid = true; diff --git a/src/ipc_connecter.hpp b/src/ipc_connecter.hpp index d22faab..b2ee20d 100644 --- a/src/ipc_connecter.hpp +++ b/src/ipc_connecter.hpp @@ -75,9 +75,9 @@ namespace xs // Set address to connect to. int set_address (const char *addr_); - // Open TCP connecting socket. Returns -1 in case of error, - // 0 if connect was successfull immediately and 1 if async connect - // was launched. + // Open IPC connecting socket. Returns -1 in case of error, + // 0 if connect was successfull immediately. Returns -1 with + // EAGAIN errno if async connect was launched. int open (); // Close the connecting socket. diff --git a/src/tcp_connecter.cpp b/src/tcp_connecter.cpp index b89d0be..2844a3b 100644 --- a/src/tcp_connecter.cpp +++ b/src/tcp_connecter.cpp @@ -137,7 +137,7 @@ void xs::tcp_connecter_t::start_connecting () return; } - // Connection establishment may be dealyed. Poll for its completion. + // Connection establishment may be delayed. Poll for its completion. else if (rc == -1 && errno == EAGAIN) { handle = add_fd (s); handle_valid = true; diff --git a/src/tcp_connecter.hpp b/src/tcp_connecter.hpp index bccaf6b..dcc909d 100644 --- a/src/tcp_connecter.hpp +++ b/src/tcp_connecter.hpp @@ -73,8 +73,8 @@ namespace xs int set_address (const char *addr_); // Open TCP connecting socket. Returns -1 in case of error, - // 0 if connect was successfull immediately and 1 if async connect - // was launched. + // 0 if connect was successfull immediately. Returns -1 with + // EAGAIN errno if async connect was launched. int open (); // Close the connecting socket. |