| Overview | Module | Function | Class | Tea 3.2.5 Reference Documentation © 2009 PDM&FC |
TServerSocket
TServerSocket is used as a server socket. It can
listen for incoming connections in a given TCP/IP port. Each
TServerSocket is bound to a port number passed to
its constructor. The accept method is used to
receive an incoming connection. This method returns a
TSocket instance that can be used to read to and
write from the connection with the client side of the socket.
|
|
TServerSocket accept
Listens for incoming client connections on the port the server socket is bound to.
TSocket associated with the connection
that was accepted.
TServerSocket close
Closes the server socket.
TServerSocket constructor port
Initializes the server socket by specifying the port it will be bound to.
| Overview | Module | Function | Class | Tea 3.2.5 Reference Documentation © 2009 PDM&FC |