public TCPv1Bridge( ConnectivitySettings connectivitySettings, P2PVersion p2pVersion, Guid replyNonce, Guid remoteNonce, bool isNeedHash, P2PSession p2pSession, NSMessageHandler ns, Contact remote, Guid remoteEpId) : base(0, ns) { this.startupSession = p2pSession; this.remote = remote; this.remoteEpId = remoteEpId; directConnection = new P2PDirectProcessor(connectivitySettings, p2pVersion, replyNonce, remoteNonce, isNeedHash, p2pSession, ns); directConnection.HandshakeCompleted += new EventHandler <EventArgs>(directConnection_HandshakeCompleted); directConnection.P2PMessageReceived += new EventHandler <P2PMessageEventArgs>(directConnection_P2PMessageReceived); directConnection.SendCompleted += new EventHandler <MSNPSharp.Core.ObjectEventArgs>(directConnection_SendCompleted); directConnection.DirectNegotiationTimedOut += new EventHandler <EventArgs>(directConnection_DirectNegotiationTimedOut); directConnection.ConnectionClosed += new EventHandler <EventArgs>(directConnection_ConnectionClosed); directConnection.ConnectingException += new EventHandler <ExceptionEventArgs>(directConnection_ConnectingException); directConnection.ConnectionException += new EventHandler <ExceptionEventArgs>(directConnection_ConnectionException); }
public TCPv1Bridge( ConnectivitySettings connectivitySettings, P2PVersion p2pVersion, Guid replyNonce, Guid remoteNonce, bool isNeedHash, P2PSession p2pSession, NSMessageHandler ns, Contact remote, Guid remoteEpId) : base(0, ns) { this.startupSession = p2pSession; this.remote = remote; this.remoteEpId = remoteEpId; directConnection = new P2PDirectProcessor(connectivitySettings, p2pVersion, replyNonce, remoteNonce, isNeedHash, p2pSession, ns); directConnection.HandshakeCompleted += new EventHandler<EventArgs>(directConnection_HandshakeCompleted); directConnection.P2PMessageReceived += new EventHandler<P2PMessageEventArgs>(directConnection_P2PMessageReceived); directConnection.SendCompleted += new EventHandler<MSNPSharp.Core.ObjectEventArgs>(directConnection_SendCompleted); directConnection.DirectNegotiationTimedOut += new EventHandler<EventArgs>(directConnection_DirectNegotiationTimedOut); directConnection.ConnectionClosed += new EventHandler<EventArgs>(directConnection_ConnectionClosed); directConnection.ConnectingException += new EventHandler<ExceptionEventArgs>(directConnection_ConnectingException); directConnection.ConnectionException += new EventHandler<ExceptionEventArgs>(directConnection_ConnectionException); }