
A
PPENDIX
H:
TCL
P
ROGRAMMING
G
UIDE
153
ampopensocket [ip_address port_number]
Opens a socket to a specific port on a device with a given IP address. The command returns a unique socket
ID. If the command fails or the arguments are improperly formatted, the command will return an error
message. The IP address must be specified in “dot notation.” (i.e., 207.25.71.20)
ampwritesocket [socket_id message]
Sends a string to the socket represented by the socket ID. If the write 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 ampwritesocket
socketDescriptor message. Command failed
Invalid Socket Descriptor %s
write socket failed
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
Command Return
Messages
0 (TCL_OK)
Unique socket ID returned
1
(TCL_ERROR)
wrong # args: should be ampopensocket
ipAddress port
invalid IP address %s
Invalid Port Number %s, values allowed
between [0-65535]
Invalid Port Number %s, only 16 bits digit
allowed
open socket failed
Summary of Contents for SX32
Page 2: ...This page intentionally left blank ...
Page 4: ...This page intentionally left blank ...
Page 78: ...68 DOMINION SX INSTALLATION AND OPERATIONS MANUAL ...
Page 90: ...80 DOMINION SX INSTALLATION AND OPERATIONS MANUAL ...
Page 94: ...84 DOMINION SX INSTALLATION AND OPERATIONS MANUAL ...
Page 102: ...92 DOMINION SX INSTALLATION AND OPERATIONS MANUAL ...
Page 106: ...96 DOMINION SX INSTALLATION AND OPERATIONS MANUAL ...
Page 108: ...98 DOMINION SX INSTALLATION AND OPERATIONS MANUAL ...
Page 122: ...112 DOMINION SX INSTALLATION AND OPERATIONS MANUAL ...
Page 134: ...124 DOMINION SX INSTALLATION AND OPERATIONS MANUAL ...
Page 174: ...164 DOMINION SX INSTALLATION AND OPERATIONS MANUAL ...
Page 177: ...APPENDIX J TECHNICAL FAQS 167 ...
Page 178: ...168 DOMINION SX INSTALLATION AND OPERATIONS MANUAL 255 60 2000 ...