UniBasic Commands Reference - Rocket Software

UniBasic Commands Reference - Rocket Software UniBasic Commands Reference - Rocket Software

rocketsoftware.com
from rocketsoftware.com More from this publisher
11.04.2013 Views

Parameter Description 1-76 UniBasic Commands Reference in_addr The buffer that receives the address of the incoming connection. If NULL, it will return nothing. in_name The variable that receives the name of the incoming connection. If NULL, it will return nothing. socket_handle The handle to the newly created socket on which the actual connection will be made. The server will use readSocket(), writeSocket(), and so forth, with this handle to commuinicate with the client. The following table describes the status of each return code. Return Code Status 0 Success. acceptConnection Parameters (continued) Non-zero See Socket Function Error Return Codes. acceptConnection Return Codes

ACOS Syntax ACOS(expr) Description The UniBasic ACOS function returns the trigonometric arc cosine (inverse cosine) of a numeric expression in degrees. expr must be a value between -1 and +1. ACOS returns a value expressed as the degree of the arc cosine of the input, which ranges from 0 to 180. If expr evaluates to a value outside the range of -1 to +1, UniData displays an error message and returns 0 as the result. With null value handling on, the result of any mathematical operation, function, or comparison involving the null value is the null value. Therefore, ACOS returns the null value when expr is the null value. Examples In the following example, the program statement assigns 60, the arc cosine of 0.5, to ARCCOS: ARCCOS = ACOS(0.5) In the next example, the program statement prints out the arc cosine of -0.5, which is 120: PRINT ACOS(-0.5) Related Commands ASIN, ATAN, COS, SIN, TAN ACOS 1-77

Parameter Description<br />

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

in_addr The buffer that receives the address of the incoming connection. If<br />

NULL, it will return nothing.<br />

in_name The variable that receives the name of the incoming connection. If<br />

NULL, it will return nothing.<br />

socket_handle The handle to the newly created socket on which the actual connection<br />

will be made. The server will use readSocket(), writeSocket(), and so<br />

forth, with this handle to commuinicate with the client.<br />

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

Return Code Status<br />

0 Success.<br />

acceptConnection Parameters (continued)<br />

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

acceptConnection Return Codes

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

Saved successfully!

Ooh no, something went wrong!