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.
43 lines
1.1 KiB
43 lines
1.1 KiB
1 month ago
|
/*
|
||
|
Sog 游戏基础库
|
||
|
2016 by zouwei
|
||
|
*/
|
||
|
|
||
|
using System.Collections.Generic;
|
||
|
using System.Net;
|
||
|
|
||
|
|
||
|
namespace SogClient
|
||
|
{
|
||
|
/// <summary>
|
||
|
/// Client socket settings.
|
||
|
/// </summary>
|
||
|
public class ClientSessionSettings
|
||
|
{
|
||
|
/// <summary>
|
||
|
///
|
||
|
/// </summary>
|
||
|
/// <param name="bufferSize"></param>
|
||
|
/// <param name="remoteEndPoint"></param>
|
||
|
/// <param name="bCrypto">是否加密消息</param>
|
||
|
public ClientSessionSettings(int bufferSize, IPEndPoint remoteEndPoint, bool cryptoMessage)
|
||
|
{
|
||
|
this.BufferSize = bufferSize;
|
||
|
this.RemoteEndPoint = remoteEndPoint;
|
||
|
this.CryptoMessage = cryptoMessage;
|
||
|
}
|
||
|
/// <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 bool CryptoMessage { get; private set; }
|
||
|
|
||
|
}
|
||
|
}
|