ServerSocket.AddSocket

From Xojo Documentation

Event


ServerSocket.AddSocket() As TCPSocket

Supported for all project types and targets.

The ServerSocket is requesting that you add a socket to its internal pool.

Notes

This is called when the ServerSocket first begins listening. This socket must stay resident (it cannot be a local variable) and must be non-Nil. It returns a TCPSocket. Since UDP is a connectionless protocol, it does not make sense for a ServerSocket to deal with UDPSockets.