public RemoteClientMessageService(TCPRemoteClient remoteClient, IRemoteClientMessageDelegate remoteClientMessageDelegate) { _remoteClient = remoteClient; //KTODO may be better to have a start/stop method on this so that it can unregister //from the given remote client remoteClient.Register(this); _remoteClientMessageDelegate = remoteClientMessageDelegate; }
public void OnRemoteClientAdded(TCPRemoteClient remoteClient) { remoteClient.Register(this); }