using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using SuperSocket.SocketBase;
using SuperSocket.SocketBase.Command;
using SuperSocket.SocketBase.Protocol;
using SuperWebSocket.Protocol;
using SuperWebSocket.SubProtocol;
namespace SuperWebSocket
{
///
/// WebSocket protocol
///
public class WebSocketProtocol : IReceiveFilterFactory
{
///
/// Initializes a new instance of the class.
///
public WebSocketProtocol()
{
}
///
/// Creates the filter.
///
/// The app server.
/// The app session.
/// The remote end point.
///
public IReceiveFilter CreateFilter(IAppServer appServer, IAppSession appSession, System.Net.IPEndPoint remoteEndPoint)
{
return new WebSocketHeaderReceiveFilter((IWebSocketSession)appSession);
}
}
}