Esempio n. 1
0
        public Nectar(string name, int timeoutMillis = 5000)
        {
            string ident = COMMON_ID + "_" + SecurityTools.GetSHA512_128String(StringTools.ENCODING_SJIS.GetBytes(name));

            _evData        = new NamedEventData(ident + "_Data");
            _evCtrl        = new NamedEventData(ident + "_Ctrl");
            _evSend        = new NamedEventData(ident + "_Send");
            _evRecv        = new NamedEventData(ident + "_Recv");
            _timeoutMillis = timeoutMillis;
        }
Esempio n. 2
0
 public void Dispose()
 {
     if (_evData != null)
     {
         _evData.Dispose();
         _evData = null;
         _evCtrl.Dispose();
         _evCtrl = null;
         _evSend.Dispose();
         _evSend = null;
         _evRecv.Dispose();
         _evRecv = null;
     }
 }