You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

36 lines
899 B

/*
Sog 游戏基础库
2016 by zouwei
*/
using System.Collections.Generic;
using System.Net;
using System.Net.Sockets;
namespace Sog
{
/// <summary>
/// Client socket settings.
/// </summary>
public class ClientSessionSettings
{
public ClientSessionSettings(int bufferSize, IPEndPoint remoteEndPoint, ProtocolType type)
{
BufferSize = bufferSize;
RemoteEndPoint = remoteEndPoint;
ProtoType = type;
}
/// <summary>
/// Gets the size of the buffer.
/// </summary>
/// <value>The size of the buffer.</value>
public int BufferSize { get; private set; }
/// <summary>
/// Gets the remote end point.
/// </summary>
/// <value>The remote end point.</value>
public IPEndPoint RemoteEndPoint { get; private set; }
public ProtocolType ProtoType { get; private set; }
}
}