Esempio n. 1
0
 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);
 }
Esempio n. 2
0
 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);
 }
Esempio n. 3
0
 public void useReceiveQueue(FileStream file = null)
 {
     _fileForSave      = file;
     _queue            = new BufferQueue();
     _isRecvQueueUsing = true;
 }
 public InterfaceFunctions(INetConnector connector, BufferQueue queue)
 {
     _queue = queue;
     _conn  = connector;
 }