使用NetType替代ProtocolType,一方面过滤掉不要的项,另一方面变为1字节的存储
Stone
authored at
2016-05-09 10:40:02
X
using System.Net.Sockets;
using NewLife.Net.Sockets;
namespace NewLife.Net.SGIP
{
/// <summary>SGIP服务器</summary>
public class SGIPServer : NetServer
{
#region 构造
/// <summary>实例化</summary>
public SGIPServer()
{
ProtocolType = NetType.Tcp;
Port = 8801;
}
#endregion
}
}
|