Socket Receive - Cisco 11503 - CSS Content Services Switch Administration Manual

Content services switch
Hide thumbs Also See for 11503 - CSS Content Services Switch:
Table of Contents

Advertisement

Using socket Commands

socket receive

Note
Cisco Content Services Switch Administration Guide
8-38
raw -The optional keyword that causes the software to interpret the string
values as hexadecimal bytes rather than as a simple string. For example, the
software converts "0D0A" to "0x0D 0x0A" (carriage return, line feed).
base64 - Encodes the string in the base-64 numbering system before sending
it through the connection. This option is useful for HTTP basic authentication
when connecting to a password-protected website.
To fill up the socket's 10-KB internal buffer with data from the remote host, use
the socket receive command. Once the buffer is full, the command locks the
buffer so that no new data can be placed in the buffer. You can use the socket
inspect command to send all data residing in this 10-KB buffer to standard output.
The software removes all previous data from the 10-KB internal buffer before it
stores new data.
The syntax for this command is:
socket receive socket_number {timeout} {raw}
The options and variables are:
socket_number - Socket file descriptor (integer form). This descriptor is
returned by the socket connect command.
socket_number - Socket file descriptor (integer form). This descriptor is
returned by the socket connect command.
timeout - The optional timeout value that specifies the number of
milliseconds the CSS software waits before the script locks the internal
10-KB buffer and resumes execution. Enter an integer from 1 to 15,000 ms.
The default is 100 ms.
raw - The optional keyword that causes the software to interpret the string
values as hexadecimal bytes rather than as a simple string. For example, the
software converts "0D0A" to "0x0D 0x0A" (carriage return, line feed).
Chapter 8
Using the CSS Scripting Language
OL-5647-02

Advertisement

Table of Contents
loading

This manual is also suitable for:

11500 series

Table of Contents