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.

closeSocket<br />

Syntax<br />

closeSocket(socket_handle)<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 closeSocket function to close a socket connection.<br />

Parameters<br />

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

The following table describes the status of each return code.<br />

1-155 <strong>UniBasic</strong> <strong>Commands</strong> <strong>Reference</strong><br />

Parameter Description<br />

socket_handle The handle to the socket you want to close.<br />

closeSocket Parameters<br />

Return<br />

Code Status<br />

0 Success.<br />

Non-zero See Socket Function Error Return Codes.<br />

Return Code Status

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

Saved successfully!

Ooh no, something went wrong!