public void release() { socket = null; bgISocket = null; socketReceiveHandler = null; socketReceiveThread = null; }
public BGSocket(BGISocket inBGISocket) { ++id; bgISocket = inBGISocket; //UpdateManager.AddUpdate(bgISocket as MonoBehaviour,id,onUpdate); socket = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp); }
public BGSocketNew2(BGISocket inBGISocket) { ++socketid; bgISocket = inBGISocket; socket = new MnaSocket(); int initCode = socket.Init("14", Application.persistentDataPath); id = socketid; }
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; }
public BGSocketReceiveHandler(Socket inSocket, BGISocket inBGISocket) { socket = inSocket; bgISocket = inBGISocket; }