
134 D
OMINION
SX I
NSTALLATION AND
O
PERATIONS
M
ANUAL
ampclosesocket [socket_id]
Closes the socket represented by the socket ID. If the command fails or the arguments are invalid, the command will
return an error with an error message.
Command Return
Messages
0 (TCL_OK)
•
No message returned
1 (TCL_ERROR)
•
wrong # args: should be ampclosesocket
socketDescriptor
•
Invalid Socket Descriptor %s
•
close socket failed
ampreadsocket [socket_id length timeout]
A non-blocking call: reads from the socket represented by the socket ID until either the length or timeout is reached.
Timeout is specified in microseconds; a timeout of zero indicates the socket will be polled and the results returned
immediately. The command returns a buffer with the data read, and if the data available to read is less than the
length requested, the command returns a buffer with the data read. If there is no data read or timeout occurs, the
command returns an “OK” with an empty buffer. If the command fails or the arguments are invalid, the command
will return an error with an error message.
Command Return
Messages
0 (TCL_OK)
•
No data read
•
Actual data read
•
Timeout occurred
1 (TCL_ERROR)
•
Command failed: "not enough memory"
•
Command failed: "Invalid Socket
Descriptor OR read socket failed"
•
Arguments invalid: "wrong # args: should
be ampreadsocket socketDescriptor
messagelength timeout"
•
Arguments invalid: "Invalid Socket
Descriptor %s"
•
Arguments invalid: "invalid length %s,
only digits allowed"
•
Arguments invalid: "invalid timeout %s,
only digits allowed"
Note:
Issue an
ampclear
command to clear old data before starting any new operations.
ampgetmacaddress
Returns the Ethernet MAC address of the unit.
Содержание Dominion SX16
Страница 1: ...Installation and Operations Manual SX16 SX32...
Страница 2: ...This page intentionally left blank...
Страница 4: ...This page intentionally left blank...
Страница 6: ...This page intentionally left blank...
Страница 10: ...iv TABLE OF CONTENTS...
Страница 14: ...viii TABLE OF FIGURES...
Страница 24: ...10 DOMINION SX INSTALLATION AND OPERATIONS MANUAL...
Страница 30: ...16 DOMINION SX INSTALLATION AND OPERATIONS MANUAL...
Страница 82: ...68 DOMINION SX INSTALLATION AND OPERATIONS MANUAL...
Страница 84: ...70 DOMINION SX INSTALLATION AND OPERATIONS MANUAL...
Страница 86: ...72 DOMINION SX INSTALLATION AND OPERATIONS MANUAL...
Страница 88: ...74 DOMINION SX INSTALLATION AND OPERATIONS MANUAL...
Страница 102: ...88 DOMINION SX INSTALLATION AND OPERATIONS MANUAL...
Страница 114: ...100 DOMINION SX INSTALLATION AND OPERATIONS MANUAL...
Страница 120: ...106 DOMINION SX INSTALLATION AND OPERATIONS MANUAL...
Страница 132: ...118 DOMINION SX INSTALLATION AND OPERATIONS MANUAL...
Страница 158: ...144 DOMINION SX INSTALLATION AND OPERATIONS MANUAL...
Страница 161: ...APPENDIX K TECHNICAL FAQS 147 DSX 0A E 255 60 2000...
Страница 162: ...148 DOMINION SX INSTALLATION AND OPERATIONS MANUAL...