11.04.2013 Views

UniBasic Commands Reference - Rocket Software

UniBasic Commands Reference - Rocket Software

UniBasic Commands Reference - Rocket Software

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

writeSocket<br />

Syntax<br />

writeSocket(socket_handle, socket_data, time_out, blocking_mode,<br />

actual_write_size)<br />

Note: This function is case-sensitive. If you want it to be case-insensitive, you<br />

must compile your programs using the BASIC command with the -i option.<br />

Description<br />

Use the writeSocket function to write data to a socket connection.<br />

Parameters<br />

The following table describes each parameter of the syntax.<br />

Parameter Description<br />

socket_handle The handle to the open socket.<br />

socket_data The data to be written to the socket.<br />

time_out The allowable time (in milliseconds) for blocking. This is<br />

ignored for a non-blocking write.<br />

blocking_mode 0:using current mode<br />

1:blocking<br />

2:non-blocking<br />

actual_write_size The number of characters actually written.<br />

writeSocket Parameters<br />

writeSocket 1-912

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!