public HResult Open(string ip, int port) { if (_eSourceState != SourceState.SourceState_Invalid) { Throw(HResult.MF_E_INVALIDREQUEST); } // If everything is ok now we are waiting for network client to connect. // Change state to opening. _eSourceState = SourceState.SourceState_Opening; return(_networkStreamAdapter.Open(ip, port)); }
public void Open(string ip, int port) { _networkStreamAdapter.Open(ip, port); }