TCP
TCP connections library
connect(ip, port, timeout)
connect(ip, port, timeout)-- Connect to example.com on port 80
local connectionId = tcp.connect("example.com", 80, 5000)sendBytes(connectionId, bytesTable)
sendBytes(connectionId, bytesTable)receiveBytes(connectionId, timeout, size)
receiveBytes(connectionId, timeout, size)disconnect(connectionId)
disconnect(connectionId)Last updated