Writes data to a socket connection.
data A byte array of data to write to the socket.
All data written with this routine must first be converted to a byte array. For information on converting data to a byte array, refer to documentation on the BYTE and BYTEORDER functions.
PRO SERVER port = 1500 socket = SOCKET_INIT(port) connection = SOCKET_ACCEPT(socket) data = BYTE('Server String ') SOCKET_WRITE, connection, data SOCKET_CLOSE, connection SOCKET_CLOSE, socket ENDSee Also
For more detailed information on using the socket routines, see Interapplication Communication Using the Socket OPI.