11.04.2013 Views

UniBasic Commands Reference - Rocket Software

UniBasic Commands Reference - Rocket Software

UniBasic Commands Reference - Rocket Software

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

initServerSocket<br />

Syntax<br />

initServerSocket(name_or_IP, port, backlog, svr_socket)<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 initServerSocket function to create a connection-oriented (stream) socket.<br />

Associate this socket with an address (name_or_IP) and port number (port), and<br />

specify the maximum length the queue of pending connections may grow to.<br />

Parameters<br />

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

Parameter Description<br />

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

name_or_IP DNS name (x.com) or IP address of a server or empty. Empty is equivalent<br />

to INADDR_ANY which means the system will choose one for<br />

you. Generally, this parameter should be left empty.<br />

port Port number. If the port number is specified as a value

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

Saved successfully!

Ooh no, something went wrong!