internal Utf8TcpPeer(Utf8TcpServer server, Socket socket) { m_Socket = socket; m_Server = server; m_RecvBuffer = new byte[m_Server.BufferSize]; Id = Guid.NewGuid().ToString(); }
public DebugServer(string appName, Script script, int port, Utf8TcpServerOptions options, bool freeRunAfterAttach) { m_AppName = appName; m_Server = new Utf8TcpServer(port, 1 << 20, '\0', options); m_Server.Start(); m_Server.DataReceived += m_Server_DataReceived; m_Script = script; m_FreeRunAfterAttach = freeRunAfterAttach; }
public HttpServer(int port, Utf8TcpServerOptions options) { m_Server = new Utf8TcpServer(port, 100 << 10, '\n', options); m_Server.DataReceived += OnDataReceivedAny; m_Server.ClientDisconnected += OnClientDisconnected; }