Aide:TCPAccept.txt
De Wiki AutoIt Français
Document original V3.3.6.1 :
###Function###
TCPAccept
###Description###
Permits an incoming connection attempt on a socket.
###Syntax###
TCPAccept ( mainsocket )
###Parameters###
@@ParamTable@@
mainsocket
The main socket identifier (SocketID) as returned by a <a href="TCPListen.htm">TCPListen</a> function.
@@End@@
###ReturnValue###
@@ReturnTable@@
Success: Returns connected socket identifier.
Failure: Returns -1 and set @error
@error: windows API WSAGetError return value (see <a href="http://msdn.microsoft.com/en-us/library/ms740668.aspx">MSDN</a>).
@@End@@
###Remarks###
###Related###
TCPStartup, TCPListen, TCPTimeout (Option), TCPCloseSocket, TCPRecv
###Example###
@@IncludeExample@@
Document traduit V3.3.6.1 :
###Function###
TCPAccept
###Description###
Permet une tentative de connexion entrante sur une socket.
###Syntax###
TCPAccept ( mainsocket )
###Parameters###
@@ParamTable@@
mainsocket
L’identifiant de la socket principale (SocketID) retourné par un appel à la fonction <a href="TCPListen.htm">TCPListen</a>.
@@End@@
###ReturnValue###
@@ReturnTable@@
Succès: Retourne l'identifiant de la socket connectée.
Échec: Retourne -1 et met @error <> 0.
@error: 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="TCPListen.htm">TCPListen</a>, <a href="TCPTimeout.htm">TCPTimeout (Option)</a>, <a href="TCPCloseSocket.htm">TCPCloseSocket</a>, <a href="TCPRecv.htm">TCPRecv</a>
###Example###
@@IncludeExample@@
Traducteur : TommyDDR
Contributeurs (pour les modifications avant le Wiki) : Tlem