using System.Net.Sockets;
namespace Sodao.FastSocket.SocketBase
{
///
/// socket connection host interface
///
public interface IHost
{
///
/// get socket buffer size
///
int SocketBufferSize { get; }
///
/// get message buffer size
///
int MessageBufferSize { get; }
///
/// create new
///
///
///
IConnection NewConnection(Socket socket);
///
/// get by connectionID
///
///
///
IConnection GetConnectionByID(long connectionID);
///
/// list all
///
///
IConnection[] ListAllConnection();
///
/// get connection count.
///
///
int CountConnection();
///
/// 启动
///
void Start();
///
/// 停止
///
void Stop();
}
}