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); }
public TConnIndRes ConnectInd(CAS.Lib.CommonBus.IAddress pRemoteAddress, int pTimeOutInMilliseconds) { MonitorEnter(); MonitorExit(); return(TConnIndRes.NoConnection); }