public UdpClientBase(int id = -1, SendType type = SendType.Normal) : base() { _id = id; _sendType = type; _isEndConnection = true; _callBackFunc = null; _queue = new BufferQueue(); _functions = new InterfaceFunctions(this, _queue); }
public TcpServerBase(int id, SendType type = SendType.Normal) { _id = id; _listener = null; _sendType = type; //_sh = null; _client = null; _isEndServer = true; _isEndConnection = true; _callBackFunc = null; _queue = new BufferQueue(); _functions = new InterfaceFunctions(this, _queue); }
public void useReceiveQueue(FileStream file = null) { _fileForSave = file; _queue = new BufferQueue(); _isRecvQueueUsing = true; }
public InterfaceFunctions(INetConnector connector, BufferQueue queue) { _queue = queue; _conn = connector; }