mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-16 14:16:09 -06:00
Core: TcpSocket::Listen now has default listen_count = 5
git-svn-id: svn://ultimatepp.org/upp/trunk@5383 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
ec179e638b
commit
17f3f2d166
2 changed files with 3 additions and 3 deletions
|
|
@ -179,7 +179,7 @@ public:
|
|||
void Attach(SOCKET socket);
|
||||
bool Connect(const char *host, int port);
|
||||
bool Connect(IpAddrInfo& info);
|
||||
bool Listen(int port, int listen_count, bool ipv6 = false, bool reuse = true);
|
||||
bool Listen(int port, int listen_count = 5, bool ipv6 = false, bool reuse = true);
|
||||
bool Accept(TcpSocket& listen_socket);
|
||||
void Close();
|
||||
void Shutdown();
|
||||
|
|
|
|||
|
|
@ -104,8 +104,8 @@ ddrInfo][@(0.0.255) `&]_[*@3 info])&]
|
|||
[s3;%% &]
|
||||
[s4;%% &]
|
||||
[s5;:TcpSocket`:`:Listen`(int`,int`,bool`,bool`): [@(0.0.255) bool]_[* Listen]([@(0.0.255) i
|
||||
nt]_[*@3 port], [@(0.0.255) int]_[*@3 listen`_count], [@(0.0.255) bool]_[*@3 ipv6]_`=_[@(0.0.255) f
|
||||
alse], [@(0.0.255) bool]_[*@3 reuse]_`=_[@(0.0.255) true])&]
|
||||
nt]_[*@3 port], [@(0.0.255) int]_[*@3 listen`_count]_`=_5, [@(0.0.255) bool]_[*@3 ipv6]_`=_
|
||||
[@(0.0.255) false], [@(0.0.255) bool]_[*@3 reuse]_`=_[@(0.0.255) true])&]
|
||||
[s2;%% Starts a listening server socket at [%-*@3 port] with input
|
||||
queue [%-*@3 listen`_count]. [%-*@3 ipv6] sets the socket to IPv6
|
||||
mode, [%-*@3 reuse] sets [^http`:`/`/www`.kernel`.org`/doc`/man`-pages`/online`/pages`/man7`/socket`.7`.html^ S
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue