Aide:TCPListen.txt

De Wiki AutoIt Français
Aller à : navigation, rechercher

Document original V3.3.6.1 :

###Function###
TCPListen

###Description###
Creates a socket listening for an incoming connection.


###Syntax###
TCPListen ( IPAddr, port [, MaxPendingConnection] )


###Parameters###
@@ParamTable@@
IPAddr
	Internet Protocol dotted address(IpV4) as "192.162.1.1".
port
	port on which the created socket will be connected.
MaxPendingConnection
	[optional] Maximum length of the queue of pending connections. By default the maximum reasonable value will be set.
@@End@@

###ReturnValue###
@@ReturnTable@@
Success:	Returns main socket identifier.
Failure:	Returns -1 or 0 and set @error.
@error:	1 IPAddr is incorrect.
	2 port  is incorrect.
	windows API WSAGetError return value (see <a href="http://msdn.microsoft.com/en-us/library/ms740668.aspx">MSDN</a>).
@@End@@


###Remarks###
None.

###Related###
TCPStartup, TCPConnect, TCPAccept, TCPTimeout (Option), TCPCloseSocket, TCPSend, TCPShutdown


###Example###
@@IncludeExample@@


Document traduit V3.3.6.1 :

###Function###
TCPListen

###Description###
Crée une socket d'écoute pour une connexion entrante.


###Syntax###
TCPListen ( IPAddr, port [, MaxPendingConnection] )


###Parameters###
@@ParamTable@@
IPAddr
	Adresse de protocole Internet séparé par des points(IpV4) tel que : "192.162.1.1".
port
	Port sur lequel la socket va se connecter.
MaxPendingConnection
	[optionnel] Longueur maximale de la file d'attente des connexions en suspens. Par défaut, une valeur maximale raisonnable est fixée.
@@End@@


###ReturnValue###
@@ReturnTable@@
Succès:	Retourne l'identifiant principale de la socket.
Échec:	Retourne -1 ou 0 et met @error <> 0.
@error:	1 IPAddr est incorrect.
	2 port est incorrect.
	Valeur de retour de l'API windows WSAStartup (Voir <a href="http://msdn.microsoft.com/en-us/library/ms740668.aspx">MSDN</a>).
@@End@@


###Remarks###
Aucune.


###Related###
<a href="TCPStartup.htm">TCPStartup</a>, <a href="TCPConnect.htm">TCPConnect</a>, <a href="TCPAccept.htm">TCPAccept</a>, <a href="TCPTimeout.htm">TCPTimeout (Option)</a>, <a href="TCPCloseSocket.htm">TCPCloseSocket</a>, <a href="TCPSend.htm">TCPSend</a>, <a href="TCPShutdown.htm">TCPShutdown</a>


###Example###
@@IncludeExample@@


Traducteur : TommyDDR

Contributeurs (pour les modifications avant le Wiki) : Tlem