forked from powerfun/udpservice
18 lines
378 B
C#
18 lines
378 B
C#
|
|
using OnlineUserPool.Model;
|
|||
|
|
using System;
|
|||
|
|
using System.Collections.Generic;
|
|||
|
|
using System.Net;
|
|||
|
|
using System.Text;
|
|||
|
|
|
|||
|
|
namespace OnlineUserPool.Services
|
|||
|
|
{
|
|||
|
|
public interface IService
|
|||
|
|
{
|
|||
|
|
public void RunServer(Action<IPEndPoint, MsgModel, IService> action);
|
|||
|
|
|
|||
|
|
public void Send(byte[] dgram, int bytes, IPEndPoint endPoint);
|
|||
|
|
|
|||
|
|
public void Close();
|
|||
|
|
}
|
|||
|
|
}
|