The TCPServer Object - Script2CMD Programming Interface
Introduction
For each connection accepted,
TCP Server keeps a copy of the
TCP Client object. You should call one of 'RemoveXXXX' method when a TCP client object is no long needed and can be released.
Properties
Client
| Value |
Object |
| Arguments: |
|
| Access |
Get |
| Notes |
|
ClientsCount
| Value |
ULONG |
| Access |
Get |
| Notes |
|
Name
| Value |
BSTR |
| Access |
Get |
| Notes |
|
Property
| Value |
VARIANT |
| Arguments: |
|
| Access |
Get, Put |
| Notes |
|
Methods
Close
Listen
| Return Value |
long |
| Arguments: |
- Object addressObject
- Object callBackFuncs
- unsigned short backlog (Optional, default(5))
|
| Notes |
|
RemoveAllClients
RemoveClient
| Return Value |
|
| Arguments: |
|
| Notes |
|
RemoveDisconnectedClients