5#ifndef PT_HTTP_WEBSOCKETSERVLET_H
6#define PT_HTTP_WEBSOCKETSERVLET_H
8#include <Pt/Http/Api.h>
9#include <Pt/NonCopyable.h>
73 friend class WebSocketService;
100 {
return _sessions.size(); }
109 std::vector<WebSocketSession*> _sessions;
HTTP reply message.
Definition Reply.h:64
HTTP request message.
Definition Request.h:65
One HTTP stream on a connection.
Definition Stream.h:92
Mapped service and factory for WebSocket sessions.
Definition WebSocketService.h:132
const WebSocketService & service() const
Returns the service this servlet was constructed with.
Definition WebSocketServlet.h:94
WebSocketService & service()
Returns the service this servlet was constructed with.
Definition WebSocketServlet.h:89
~WebSocketServlet()
Detaches this servlet and releases its remaining sessions.
WebSocketServlet(WebSocketService &service)
Attaches this servlet to service.
std::size_t size() const
Returns the number of live sessions.
Definition WebSocketServlet.h:99
Server facade of one accepted WebSocket stream.
Definition WebSocketSession.h:157
NonCopyable()
Default constructor.
Definition NonCopyable.h:63
HTTP clients and servers.
Core module.
Definition Allocator.h:33