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:
cxl 2012-09-22 08:12:59 +00:00
parent ec179e638b
commit 17f3f2d166
2 changed files with 3 additions and 3 deletions

View file

@ -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();

View file

@ -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