-
Notifications
You must be signed in to change notification settings - Fork 2
Networking
Dickson Law edited this page Sep 8, 2017
·
1 revision
Return a new TCP client socket. Optionally you can provide a port for it to connect from.
chat_channel = TcpClient(9007);
client = TcpClient();
Return a new TCP server socket. Optionally you can provide a port to listen to (default: $7000 | (game_id & $0FFF)
), the maximum number of clients (default: 100) and whether it is raw (default: false).
server = TcpServer();
message_server = TcpServer(9007, 1000);
Return a new UDP client socket. Optionally you can provide a port to connect from.
pinger = UdpClient(7042);
client = UdpClient();
Return a new UDP server socket. Optionally you can provide a port to listen to (default: $7000 | (game_id & $0FFF)
), the maximum number of clients (default: 100) and whether it is raw (default: false).
server = UdpServer(7055, 100, false);
broadcaster = UdpServer();