using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Net; namespace SuperSocket.SocketBase { /// /// Active connect result model /// public class ActiveConnectResult { /// /// Gets or sets a value indicating whether the conecting is sucessfull /// /// /// true if result; otherwise, false. /// public bool Result { get; set; } /// /// Gets or sets the connected session. /// /// /// The connected session. /// public IAppSession Session { get; set; } } /// /// The inerface to connect the remote endpoint actively /// public interface IActiveConnector { /// /// Connect the target endpoint actively. /// /// The target end point. /// Task ActiveConnect(EndPoint targetEndPoint); /// /// Connect the target endpoint actively. /// /// The target end point. /// The local end point. /// Task ActiveConnect(EndPoint targetEndPoint, EndPoint localEndPoint); } }