forked from powerfun/udpservice
18 lines
422 B
C#
18 lines
422 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, ReceiveModel, IService> received, Action<EndPoint> disconnected = null);
|
|
|
|
public void Send(byte[] dgram, int bytes, IPEndPoint endPoint);
|
|
|
|
public void Close();
|
|
}
|
|
}
|