示例#1
0
 /// <summary>
 /// Connects to the server at the specified port and IP address.
 /// </summary>
 public void Connect()
 {
     Log.Info("Connecting to server");
     _connection.ConnectToServer();
     Log.Info("Registering as publisher");
     _connection.SendControl(ControlBytes.RegisterPublisher);
     Log.Info("Successfully connected to server and registered");
 }
示例#2
0
 /// <summary>
 /// Connects to the server at the specified port and IP address.
 /// </summary>
 public void Connect()
 {
     Log.Info("Connecting to server");
     _connection.ConnectToServer();
     Log.Info("Registering as subscriber");
     _connection.InitReceive();
     _connection.SendControl(ControlBytes.RegisterSubscriber);
     Log.Info("Successfully connected to server and registered");
 }