示例#1
0
		internal Utf8TcpPeer(Utf8TcpServer server, Socket socket)
		{
			m_Socket = socket;
			m_Server = server;
			m_RecvBuffer = new byte[m_Server.BufferSize];
			Id = Guid.NewGuid().ToString();
		}
示例#2
0
 internal Utf8TcpPeer(Utf8TcpServer server, Socket socket)
 {
     m_Socket     = socket;
     m_Server     = server;
     m_RecvBuffer = new byte[m_Server.BufferSize];
     Id           = Guid.NewGuid().ToString();
 }
示例#3
0
		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;
		}
示例#4
0
 public HttpServer(int port, Utf8TcpServerOptions options)
 {
     m_Server = new Utf8TcpServer(port, 100 << 10, '\n', options);
     m_Server.DataReceived       += OnDataReceivedAny;
     m_Server.ClientDisconnected += OnClientDisconnected;
 }
示例#5
0
		public HttpServer(int port, Utf8TcpServerOptions options)
		{
			m_Server = new Utf8TcpServer(port, 100 << 10, '\n', options);
			m_Server.DataReceived += OnDataReceivedAny;
			m_Server.ClientDisconnected += OnClientDisconnected;
		}