示例#1
0
        public Client(Server s, TcpClient client)
        {
            _s = s;
            _client = client;

            _rdr = new StreamReader(client.GetStream(), Encoding.UTF8);

            (new Thread(ev_read) { IsBackground = true }).Start();

            lock (__all) {
                __all.Add(this);
            }
        }
示例#2
0
 public override void FinishedLaunching(NSObject notification)
 {
     _server = new Server(this);
 }