Explorar o código

LinNet.SOMAXCONN

Alexander Shiryaev %!s(int64=8) %!d(string=hai) anos
pai
achega
887ebb998e
Modificáronse 2 ficheiros con 4 adicións e 0 borrados
  1. 2 0
      BlackBox/_FreeBSD_/Lin/Mod/Net.txt
  2. 2 0
      BlackBox/_Linux_/Lin/Mod/Net.txt

+ 2 - 0
BlackBox/_FreeBSD_/Lin/Mod/Net.txt

@@ -66,6 +66,8 @@ MODULE LinNet ["libc.so.7"];
 		MSG_CTRUNC* = {5}; (* control data lost before delivery *)
 		MSG_WAITALL* = {6}; (* wait for full request or error *)
 
+		SOMAXCONN* = 128;
+
 		(* addrinfo.ai_flags *)
 			AI_PASSIVE* = {0}; (* get address to use bind() *)
 			AI_CANONNAME* = {1}; (* fill ai_canonname *)

+ 2 - 0
BlackBox/_Linux_/Lin/Mod/Net.txt

@@ -169,6 +169,8 @@ MODULE LinNet ["libc.so.6"];
 			MSG_MORE* = {15};
 			MSG_WAITFORONE* = {16};
 
+		SOMAXCONN* = 128;
+
 		(* addrinfo.ai_flags *)
 			AI_PASSIVE* = {0}; (* Socket address is intended for `bind'. *)
 			AI_CANONNAME* = {1}; (* Request for canonical name. *)