using System;
namespace Sodao.FastSocket.Server
{
///
/// udp service interface.
///
///
public interface IUdpService where TMessage : class, Messaging.IMessage
{
///
/// on message received
///
///
///
void OnReceived(UdpSession session, TMessage message);
///
/// on error.
///
///
///
void OnError(UdpSession session, Exception ex);
}
}