
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.
Summary of Contents for Dominion SX16
Page 1: ...Installation and Operations Manual SX16 SX32...
Page 2: ...This page intentionally left blank...
Page 4: ...This page intentionally left blank...
Page 6: ...This page intentionally left blank...
Page 10: ...iv TABLE OF CONTENTS...
Page 14: ...viii TABLE OF FIGURES...
Page 24: ...10 DOMINION SX INSTALLATION AND OPERATIONS MANUAL...
Page 30: ...16 DOMINION SX INSTALLATION AND OPERATIONS MANUAL...
Page 82: ...68 DOMINION SX INSTALLATION AND OPERATIONS MANUAL...
Page 84: ...70 DOMINION SX INSTALLATION AND OPERATIONS MANUAL...
Page 86: ...72 DOMINION SX INSTALLATION AND OPERATIONS MANUAL...
Page 88: ...74 DOMINION SX INSTALLATION AND OPERATIONS MANUAL...
Page 102: ...88 DOMINION SX INSTALLATION AND OPERATIONS MANUAL...
Page 114: ...100 DOMINION SX INSTALLATION AND OPERATIONS MANUAL...
Page 120: ...106 DOMINION SX INSTALLATION AND OPERATIONS MANUAL...
Page 132: ...118 DOMINION SX INSTALLATION AND OPERATIONS MANUAL...
Page 158: ...144 DOMINION SX INSTALLATION AND OPERATIONS MANUAL...
Page 161: ...APPENDIX K TECHNICAL FAQS 147 DSX 0A E 255 60 2000...
Page 162: ...148 DOMINION SX INSTALLATION AND OPERATIONS MANUAL...