mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-07-11 22:03:01 -06:00
.docs
git-svn-id: svn://ultimatepp.org/upp/trunk@7121 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
abe2cce158
commit
38d9f5c26d
1 changed files with 9 additions and 2 deletions
|
|
@ -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],
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue