using System.Net;
using System.Net.Sockets;
namespace STUN
{
///
/// STUN client query result
///
public class STUNQueryResult
{
///
/// The query type that passed to method
///
public STUNQueryType QueryType { get; set; }
///
/// The query result error
///
public STUNQueryError QueryError { get; set; }
///
/// Contains the server error code that receive from server.
/// Presents if set too
///
public STUNErrorCodes ServerError { get; set; }
///
/// Contains the server error phrase that receive from server.
/// Presents if set to
///
public string ServerErrorPhrase { get; set; }
///
/// The socket that used to communicate with STUN server
///
public Socket Socket { get; set; }
///
/// Contains the server address
///
public IPEndPoint ServerEndPoint { get; set; }
///
/// Contains the queried NAT Type.
/// Presents if set to
///
public STUNNATType NATType { get; set; }
///
/// Contains the public endpoint that queried from server.
///
public IPEndPoint PublicEndPoint { get; set; }
///
/// Contains client's socket local endpoiont.
///
public IPEndPoint LocalEndPoint { get; set; }
}
}