diff options
author | Ivo Danihelka <ivo@danihelka.net> | 2012-02-16 10:02:19 +0900 |
---|---|---|
committer | Martin Sustrik <sustrik@250bpm.com> | 2012-02-16 10:02:19 +0900 |
commit | 82dfe7522eddb01bb8e99e7badf3808eda2be957 (patch) | |
tree | 1a4506020697677d4d06761e17a044c30d143eee /src | |
parent | ada1db899a7a611ee074dc0c3ee9f293131b06ee (diff) |
Updated connector open() doc strings.
Signed-off-by: Ivo Danihelka <ivo@danihelka.net>
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. |