The TCPServer Object - Script2CMD Programming Interface

Document Path: Home Page / Programming / Script2CMD / Interfaces / TCPServer Object  
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 ClientsCount Name Property
Methods Close DoRoutine Listen RemoveAllClients RemoveClient RemoveDisconnectedClients
Properties

Client

Value Object
Arguments:
  • ULONG index
Access Get
Notes

ClientsCount

Value ULONG
Access Get
Notes

Name

Value BSTR
Access Get
Notes

Property

Value VARIANT
Arguments:
  • BSTR name
Access Get, Put
Notes
Methods

Close

Return Value
Notes

Listen

Return Value long
Arguments:
  • Object addressObject
  • Object callBackFuncs
  • unsigned short backlog (Optional, default(5))
Notes

RemoveAllClients

Return Value
Notes

RemoveClient

Return Value
Arguments:
  • Object tcpClient
Notes

RemoveDisconnectedClients

Return Value
Notes