Example #1
0
 public void release()
 {
     socket               = null;
     bgISocket            = null;
     socketReceiveHandler = null;
     socketReceiveThread  = null;
 }
Example #2
0
 public BGSocket(BGISocket inBGISocket)
 {
     ++id;
     bgISocket = inBGISocket;
     //UpdateManager.AddUpdate(bgISocket as MonoBehaviour,id,onUpdate);
     socket = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp);
 }
Example #3
0
    public BGSocketNew2(BGISocket inBGISocket)
    {
        ++socketid;

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

        id = socketid;
    }
Example #4
0
    public BGSocketNew(BGISocket inBGISocket)
    {
        ++socketid;

        /*
         #if UNITY_ANDROID
         *      UpdateManager.AddUpdate(inBGISocket as MonoBehaviour,socketid,onUpdate);
         #else
         *      UpdateManager.AddCoroutine(inBGISocket as MonoBehaviour,socketid,onUpdate);
         #endif
         */
        bgISocket           = inBGISocket;
        socket              = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp);
        sendArgs.Completed += sendArg_Completed;

        id = socketid;
    }
Example #5
0
 public BGSocketReceiveHandler(Socket inSocket, BGISocket inBGISocket)
 {
     socket    = inSocket;
     bgISocket = inBGISocket;
 }