howdy guys,
I have added a new function to CTPort called "ctsetscript" which sets a
state variable in ctserver. This state variable can be accessed from the
management port with this command:
cmd=portstatus src=-2 dst=-2 argc=0
And you should get something like this back:
cmd=portstatus src=-2 dst=-2 argc=0
port 0 WaitingForConnection
port 1 WaitingForConnection
port 2 WaitingForConnection
port 3 WaitingForConnection
port 4 WaitingForConnection
port 5 WaitingForConnection
port 6 ctwaitforevent handle idle
port 7 ctwaitforevent handle idle
port 8 ctwaitforevent handle idle
port 9 ctwaitforevent handle idle
port 10 ctwaitforevent handle idle
port 11 ctwaitforevent handle idle
Which is a tab delimited list, column 1 is just port, column 2 is the
port number, column 3 is the current function in ctserver, and column 4
is the setscript value.
|