Aide:UDPOpen.txt
De Wiki AutoIt Français
Document original V3.3.6.1 :
###Function###
UDPOpen
###Description###
Open a socket connected to an existing server .
###Syntax###
UDPOpen ( IPAddr, port [, flag] )
###Parameters###
@@ParamTable@@
IPAddr
Internet Protocol dotted address(IpV4) as "192.162.1.1".
port
port on which the created socket will be connected.
flag
[optional] 0 (Default) - No additional options are set.
1 - Allow the broadcasting on the address "255.255.255.255".
@@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: Returns $array[0]=0 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###
This function is used by a client to communicate with the server.
###Related###
UDPBind, UDPSend, UDPCloseSocket, UDPRecv
###Example###
@@IncludeExample@@
Document traduit V3.3.6.1 :
###Function###
UDPOpen
###Description###
Ouvre une socket connectée sur un serveur existant.
###Syntax###
UDPOpen ( IPAddr, port [, flag] )
###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 connecté.
flag
[optionnel] 0 (Défaut) - Aucune option supplémentaire n'est mise.
1 - Autorise le broadcast sur l'adresse "255.255.255.255".
@@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: Retourne $array[0]=0 et fixe @error.
@error: 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="UDPOpen.htm">UDPOpen</a>, <a href="UDPBind.htm">UDPBind</a>
###Example###
@@IncludeExample@@
Traducteur : Jerome
Contributeurs (pour les modifications avant le Wiki) : Tlem