Beispiel #1
0
 private void OnSessClose(object sender, SockSess sess)
 {
     if (sess is SockSessServer)
     {
         uidata.CloseSockUnit(SockType.listen, sess.lep, sess.rep);
     }
     else if (sess is SockSessClient)
     {
         uidata.CloseSockUnit(SockType.connect, sess.lep, sess.rep);
     }
     else
     {
         uidata.DelSockUnit(SockType.accept, sess.lep, sess.rep);
     }
 }