예제 #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);
 }
예제 #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);
 }
예제 #3
0
 public void useReceiveQueue(FileStream file = null)
 {
     _fileForSave      = file;
     _queue            = new BufferQueue();
     _isRecvQueueUsing = true;
 }
예제 #4
0
 public InterfaceFunctions(INetConnector connector, BufferQueue queue)
 {
     _queue = queue;
     _conn  = connector;
 }