摘要:
local socket = require"socket" local host = "127.0.0.1"local port = "843"local sever = assert(socket.bind(host, port)) --绑定sever:settimeout(nil) --不设置 阅读全文
摘要:
服务器,main.lua local socket = require ( "socket" )local tcpServer = nil--创建指定端口的tcp serverlocal function createTCPServer( port ) -- Create Socket local 阅读全文