ArtemisComm.PacketProcessing.SetServerHost C# (CSharp) Method

SetServerHost() public method

public SetServerHost ( string host ) : void
host string
return void
        public void SetServerHost(string host)
        {
            if (!string.IsNullOrEmpty(Host))
            {
                throw new InvalidOperationException("Host already set--cannot be changed once the host is set.");
            }
            else
            {
                Host = host;
            }
        }
        public void SetPort(int port)

Usage Example

        private void OnConnect(object sender, RoutedEventArgs e)
        {
            string host = Host.Text;
            connector = new PacketProcessing();


            ConnectorSubscribe();
            connector.SetPort(2010);
            connector.SetServerHost(host);
            connector.StartServerConnection();

        }
All Usage Examples Of ArtemisComm.PacketProcessing::SetServerHost