コード例 #1
0
 public TConnectReqRes ConnectReq(CAS.Lib.CommonBus.IAddress remoteAddress)
 {
     Assert.IsTrue(!myConnected, "Must be disconnected while ConnectReq");
     MonitorEnter();
     if (!myBreakConnection)
     {
         myConnected = true;
         MonitorExit();
         return(TConnectReqRes.Success);
     }
     myBreakConnection = false;
     MonitorExit();
     return(TConnectReqRes.NoConnection);
 }
コード例 #2
0
 public TConnIndRes ConnectInd(CAS.Lib.CommonBus.IAddress pRemoteAddress, int pTimeOutInMilliseconds)
 {
     MonitorEnter();
     MonitorExit();
     return(TConnIndRes.NoConnection);
 }