Exemplo n.º 1
0
 // Use this for initialization
 public void Start()
 {
     // 连接服务器
     client = new TCPPeer(this);
     client.Connect("127.0.0.1", 10001);
 }
Exemplo n.º 2
0
 //连接服务器
 public void ConnectToServer()
 {
     peer   = new TCPPeer(this);
     socket = peer.Connect("127.0.0.1", 8000);
 }