nathistorypoint.cs
来自「破解的飞信源代码」· CS 代码 · 共 74 行
CS
74 行
namespace NCindy.Protocol.RUDP.NATTraversal
{
using NCindy.Protocol.RUDP;
using System;
using System.Net;
public abstract class NATHistoryPoint
{
protected System.DateTime _date;
protected IPEndPoint _localEndPoint;
protected IPEndPoint _peerViewOfLocalEndPoint;
protected IPEndPoint _previousEndPoint;
protected IPEndPoint _remoteEndPoint;
protected int _socketHandle;
public NATHistoryPoint(System.DateTime date, RUDPSocket socket)
{
this._date = date;
this._socketHandle = socket.Handle;
this._localEndPoint = socket.LocalEndPoint;
this._remoteEndPoint = socket.RemoteEndPoint;
}
public System.DateTime DateTime
{
get
{
return this._date;
}
}
public IPEndPoint LocalEndPoint
{
get
{
return this._localEndPoint;
}
}
public IPEndPoint PeerViewOfLocalEndPoint
{
get
{
return this._peerViewOfLocalEndPoint;
}
}
public IPEndPoint PreviousEndPoint
{
get
{
return this._previousEndPoint;
}
}
public IPEndPoint RemoteEndPoint
{
get
{
return this._remoteEndPoint;
}
}
public int SocketHandle
{
get
{
return this._socketHandle;
}
}
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?