예제 #1
0
 //关闭Socket
 public void Closed()
 {
     if (socket != null)
     {
         //socket.Shutdown(SocketShutdown.Both);
         socket.Close();
     }
     socket = null;
 }
예제 #2
0
    public BGSocketNew2(BGISocket inBGISocket)
    {
        ++socketid;

        bgISocket = inBGISocket;
        socket    = new MnaSocket();
        int initCode = socket.Init("14", Application.persistentDataPath);

        id = socketid;
    }
예제 #3
0
 public void release()
 {
     socket              = null;
     bgISocket           = null;
     socketReceiveThread = null;
 }