diff --git a/uppsrc/Core/src.tpp/TcpSocket$en-us.tpp b/uppsrc/Core/src.tpp/TcpSocket$en-us.tpp index c11bd8a13..02eafc0b1 100644 --- a/uppsrc/Core/src.tpp/TcpSocket$en-us.tpp +++ b/uppsrc/Core/src.tpp/TcpSocket$en-us.tpp @@ -100,14 +100,21 @@ non`-blocking state.&] [s5;:TcpSocket`:`:Connect`(const char`*`,int`): [@(0.0.255) bool]_[* Connect]([@(0.0.255) c onst]_[@(0.0.255) char]_`*[*@3 host], [@(0.0.255) int]_[*@3 port])&] [s2;%% Connects socket to server at [%-*@3 host]:[%-*@3 port]. This operation -is blocking.&] -[s3;%% &] +is blocking with respect to resolving host name. Returns true +when connection process is successfully started.&] +[s3; &] [s4;%% &] [s5;:TcpSocket`:`:Connect`(IpAddrInfo`&`): [@(0.0.255) bool]_[* Connect]([_^IpAddrInfo^ IpA ddrInfo][@(0.0.255) `&]_[*@3 info])&] [s2;%% Connects socket to server found at [%-*@3 info]. Non`-blocking.&] [s3;%% &] [s4; &] +[s5;:TcpSocket`:`:WaitConnect`(`): [@(0.0.255) bool]_[* WaitConnect]()&] +[s2;%% After Connect returns true, WaitConnect waits for connection +to be established. Note that it is only necessary to use WaitConnect +if you want to intercept errors before sending/recieving data.&] +[s3;%% &] +[s4; &] [s5;:TcpSocket`:`:Listen`(int`,int`,bool`,bool`,void`*`): [@(0.0.255) bool]_[* Listen]([@(0.0.255) i nt]_[*@3 port], [@(0.0.255) int]_[*@3 listen`_count]_`=_[@3 5], [@(0.0.255) bool]_[*@3 ipv6]_ `=_[@(0.0.255) false], [@(0.0.255) bool]_[*@3 reuse]_`=_[@(0.0.255) true],