public Connection(string host, int port) { Type = Enums.ConnectionType.Client; Host = host; Port = port; if (Host == "") { Type = Enums.ConnectionType.Server; Host = null; } }
public Connection(int port) { Type = Enums.ConnectionType.Server; Host = null; Port = port; }