2021-01-18 20:24:19 +08:00
|
|
|
|
using OnlineUserPool.Model;
|
|
|
|
|
|
using System;
|
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
using System.Net;
|
|
|
|
|
|
using System.Text;
|
|
|
|
|
|
|
|
|
|
|
|
namespace OnlineUserPool.Services
|
|
|
|
|
|
{
|
|
|
|
|
|
public interface IService
|
|
|
|
|
|
{
|
2021-07-07 09:49:36 +08:00
|
|
|
|
public void RunServer(Action<IPEndPoint, ReceiveModel, IService> received, Action<EndPoint> disconnected = null);
|
2021-01-18 20:24:19 +08:00
|
|
|
|
|
|
|
|
|
|
public void Send(byte[] dgram, int bytes, IPEndPoint endPoint);
|
|
|
|
|
|
|
|
|
|
|
|
public void Close();
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|