protected override PeerBase CreatePeer(InitRequest initRequest) { if (IsSubServerPeer(initRequest)) { if (Log.IsDebugEnabled) { Log.DebugFormat("Received init request from sub server"); } var SubServerPeer = new IncomingSubServerToSubServerPeer(initRequest, this); AddSubServerHandlers(SubServerPeer); return(SubServerPeer); } if (Log.IsDebugEnabled) { Log.DebugFormat("Connection Rejected from {0}:{1}", initRequest.RemoteIP, initRequest.RemotePort); } return(null); }
protected override PeerBase CreatePeer(InitRequest initRequest) { if (IsSubServerPeer(initRequest)) { if (Log.IsDebugEnabled) { Log.DebugFormat("Received init request from sub server"); } var SubServerPeer = new IncomingSubServerToSubServerPeer(initRequest, this); AddSubServerHandlers(SubServerPeer); return SubServerPeer; } if (Log.IsDebugEnabled) { Log.DebugFormat("Connection Rejected from {0}:{1}", initRequest.RemoteIP, initRequest.RemotePort); } return null; }
protected abstract void AddSubServerHandlers(IncomingSubServerToSubServerPeer SubServerPeer);