ssCore.TCP.close

Closes the socket opened in TCP.open or TCP.listen.


Availability:

First available in version 3.0 build 2039.


Input Parameters:

None.


Output Parameters:

No output parameters.


Asynchronous Mode:

When this method is called asynchronously, a return object containing the output parameters is passed to the specified callback function.

ssCore.TCP.close( paramsObject [, callbackParamsObject] [, errorParamsObject] );


Synchronous Mode:

When this method is called synchronously, a return object containing the output parameters is returned to the caller immediately.

var returnObject = ssCore.TCP.close( paramsObject );


Notes:

If a plugin instance is to be reused, TCP.close must be called before a subsequent call to TCP.open or TCP.listen.

TCP.close terminates the event notifications started by a prior call to TCP.setNotify.

                

Examples:

ssCore.TCP.close();