Skip to content
Bojidar Marinov edited this page Oct 3, 2015 · 1 revision

Implemented in res://lib/tcp/server.gd

Methods Index

Signals Index

Methods

start(int port)

Starts the TCP server on port port.

send_to(int id, Dictionary message)

Puts message in the id's message queue to be processed and sent later.

send_to_all(Dictionary message)

Puts message in the global message queue to be processed and sent later.

stop()

Stops the server (any pending messages are lost).

Signals

connect(int id)

Fired a new connection becomes available

message(int id, Dictionary message)

Fired when a new message arrives from the client with id id.