public LocalNodeConnection(ITransport transport)
{
if (transport == null) {
throw new ArgumentNullException ("transport");
}
if (transport.Network == null) {
throw new ArgumentException ("transport.Network cannot be null");
}
this.transport = transport;
transport.Connected += OnTransportConnected;
transport.Disconnected += OnTransportDisconnected;
Construct ();
}