udpWrite()
Writes data to the passed UDP socket (host).
Synopsis
int udpWrite( int socket, string/blob data, string host, unsigned
                    port);
Parameters
| Parameter | Description | 
|---|---|
| socket | Number of the sockets | 
| data | Data to be written | 
| host | Name of the host, to which the function establishes a connection, for example: eiwnt094. | 
| port | Port number | 
Return value
Number of sent bytes, or -1 if an error occurs. Errors can be retrieved with getLastError().
Error
Missing or wrong arguments.
Description
Writes data to the passed UDP socket (host).
Example
main()
{
  dyn_errClass err;
  int write, socket;
  unsigned port;
  data="Data";
  socket=100; 
  port = 120;
  write = udpWrite(socket, data, "eiwnt094", port);
  err = getLastError();
  DebugN(write);
  DebugN(err);
}
        Assignment
Availability
CTRL