A TCP server.
    public class TCP_Server : Reference

A TCP server. Listens to connections on a port and returns a StreamPeerTCP when it gets an incoming connection.

Inheritance Chain


    public TCP_Server()


    public bool IsConnectionAvailable()

Returns true if a connection is available for taking.

    public bool IsListening()

Returns true if the server is currently listening for connections.

    public Error Listen(ushort port, string bindAddress = "*")

    public void Stop()

Stops listening.

    public StreamPeerTCP TakeConnection()

If a connection is available, returns a StreamPeerTCP with the connection.