Esempio n. 1
0
        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));
        }
Esempio n. 2
0
 public void Open(string ip, int port)
 {
     _networkStreamAdapter.Open(ip, port);
 }