UniBasic Commands Reference - Rocket Software
UniBasic Commands Reference - Rocket Software UniBasic Commands Reference - Rocket Software
getResponseHeader Syntax getResponseHeader(request_handle, header_name, header_value) Note: This function is case-sensitive. If you want it to be case-insensitive, you must compile your programs using the BASIC command with the -i option. Description This function gets a specific response header value from response headers returned by submitRequest(). It can be used to query if a specific header, for example, Content-encoding, is present in the response. Parameters The following table describes each parameter of the syntax. Parameter Description The following table describes the status of each return code. 1-306 UniBasic Commands Reference request_handle The handle to the request. header_name A string containing a response header name. header_value The value of the header, if present. Otherwise, an empty string. getResponseHeader Parameters Return Code Status 0 Success. 1 Invalid request handle. 2 Header not found. get ResponseHeader Return Code
getSocketInformation Syntax getSocketInformation(socket_handle, self_ or_ peer, socket_info) Note: This function is case-sensitive. If you want it to be case-insensitive, you must compile your programs using the BASIC command with the -i option. Description Use the getSocketInformation function to obtain information about a socket connection. Parameters The following table describes each parameter of the syntax. Parameter Description socket_handle The handle to the open socket. self_ or_ peer Get information on the self end or the peer end of the socket. Specify 0 to return information from the peer end and non-zero for information from the self end. socket_info Dynamic Array containing information about the socket connection. For information about the elements of this dynamic array, see the following table. getSocketInformation Parameters 1-307
- Page 294 and 295: FILELOCK Syntax FILELOCK [file.var]
- Page 296 and 297: FILEUNLOCK Syntax FILEUNLOCK [file.
- Page 298 and 299: FIND Syntax FIND expr IN dyn.array[
- Page 300 and 301: Related Commands UniBasic [], FINDS
- Page 302 and 303: Parameter Description Examples In t
- Page 304 and 305: FMT Syntax FMT(expr, "len [f.char]
- Page 306 and 307: STATUS Function Return Values After
- Page 308 and 309: FOOTING Syntax FOOTING [ON num.expr
- Page 310 and 311: Related Commands UniBasic GETPTR, H
- Page 312 and 313: This program segment produces the f
- Page 314 and 315: Parameter Description Examples The
- Page 316 and 317: FUNCTION Syntax FUNCTION function.n
- Page 318 and 319: The following program calls the pre
- Page 320 and 321: GE Syntax expr1 GE expr2 Synonyms #
- Page 322 and 323: generateKey Syntax generateKey(priv
- Page 324 and 325: Return Code Status 1-286 UniBasic C
- Page 326 and 327: GET Syntax GET[X] var[,length] [SET
- Page 328 and 329: Example In the following example, t
- Page 330 and 331: Parameters The following table desc
- Page 332 and 333: getHTTPDefault Syntax getHTTPDefaul
- Page 334 and 335: GETLIST Syntax GETLIST list.name [,
- Page 336 and 337: UniData SQL SELECT - For informatio
- Page 338 and 339: STATUS Function Return Values After
- Page 340 and 341: GETQUEUE Syntax GETQUEUE() Descript
- Page 342 and 343: GETREADU Syntax GETREADU() Descript
- Page 346 and 347: The following table describes each
- Page 348 and 349: Parameters The following table desc
- Page 350 and 351: GETUSERGROUP Syntax GETUSERGROUP(ui
- Page 352 and 353: GETUSERNAME Syntax GETUSERNAME(uid)
- Page 354 and 355: 1-316 UniBasic Commands Reference
- Page 356 and 357: Related Commands UniBasic GOSUB, ON
- Page 358 and 359: Examples In the following example,
- Page 360 and 361: Parameter Description The replace.n
- Page 362 and 363: This next example compiles and runs
- Page 364 and 365: Related Command UniBasic GTS 1-326
- Page 366 and 367: HASH Syntax HASH(rec.key,modulo,typ
- Page 368 and 369: Parameters The following table desc
- Page 370 and 371: HUSH Syntax HUSH {ON | OFF | expr}
- Page 372 and 373: ICONV Syntax ICONV(expr,conv.code.e
- Page 374 and 375: STATUS Function Return Values After
- Page 376 and 377: 1-337 UniBasic Commands Reference
- Page 378 and 379: The following table describes vario
- Page 380 and 381: Related Command UniBasic OCONV Grou
- Page 382 and 383: Example In the following example, t
- Page 384 and 385: Parameters Description Example You
- Page 386 and 387: Parameter Description Examples In t
- Page 388 and 389: Parameter Description Example In th
- Page 390 and 391: ICONV Packed Decimal (MP1) Syntax I
- Page 392 and 393: Parameter Description Example In th
getSocketInformation<br />
Syntax<br />
getSocketInformation(socket_handle, self_ or_ peer, socket_info)<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 getSocketInformation function to obtain information about a socket<br />
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 />
self_ or_ peer Get information on the self end or the peer end of the socket. Specify 0<br />
to return information from the peer end and non-zero for information<br />
from the self end.<br />
socket_info Dynamic Array containing information about the socket connection.<br />
For information about the elements of this dynamic array, see the<br />
following table.<br />
getSocketInformation Parameters<br />
1-307