//关闭Socket public void Closed() { if (socket != null) { //socket.Shutdown(SocketShutdown.Both); socket.Close(); } socket = null; }
public BGSocketNew2(BGISocket inBGISocket) { ++socketid; bgISocket = inBGISocket; socket = new MnaSocket(); int initCode = socket.Init("14", Application.persistentDataPath); id = socketid; }
public void release() { socket = null; bgISocket = null; socketReceiveThread = null; }