Aide:UDPBind.txt
De Wiki AutoIt Français
Document original V3.3.6.1 :
###Function###
UDPBind
###Description###
Create a socket bound to an incoming connection.
###Syntax###
UDPBind ( IPAddr, port )
###Parameters###
@@ParamTable@@
IPAddr
Internet Protocol dotted address(IpV4) as "192.162.1.1".
port
port on which the created socket will be bound.
@@End@@
###ReturnValue###
@@ReturnTable@@
Success: Returns an array : $array[1] contains the real socket, $array[2] contains the specified IP address and $array[3] contains the port. We need this information in subsequent calls to UDPSend(), where we pass this socket structure/array.
Failure: 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###
UDPRecv, UDPOpen, UDPCloseSocket, UDPSend
###Example###
@@IncludeExample@@
Document traduit V3.3.6.1 :
###Function###
UDPBind
###Description###
Crée une socket liée à la connexion entrante.
###Syntax###
UDPBind ( IPAddr, port )
###Parameters###
@@ParamTable@@
IPAddr
L'adresse IPv4 séparée par des points tel que "192.162.1.1".
port
Port sur lequel la socket créée sera lié.
@@End@@
###ReturnValue###
@@ReturnTable@@
Succès: Retourne un tableau : $array[1] contient la socket réelle, $array[2] contient l'adresse IP spécifiée et $array[3] contient le port. Nous avons besoin de ces informations pour des appels ultérieurs à UDPSend(), où nous passons cette structure/tableau de socket.
Échec: Fixe @error
@error: 1 L'adresse IP est incorrect.
2 Le port est incorrect.
Valeur de retour de l'API Windows WSAGetError (Voir <a href="http://msdn.microsoft.com/en-us/library/ms740668.aspx">MSDN</a>).
@@End@@
###Remarks###
Aucune.
###Related###
<a href="UDPRecv.htm">UDPRecv</a>, <a href="UDPOpen.htm">UDPOpen</a>, <a href="UDPCloseSocket.htm">UDPCloseSocket</a>, <a href="UDPSend.htm">UDPSend</a>
###Example###
@@IncludeExample@@
Traducteur : Jerome
Contributeurs (pour les modifications avant le Wiki) : Tlem