This class implements websockets. It grabs the network context from C::Webserver and utilizes it directly as a tcp streaming service
More...
This class implements websockets. It grabs the network context from C::Webserver and utilizes it directly as a tcp streaming service
Definition at line 43 of file WebsocketServerHandler.cs.
OpenSim.Framework.Servers.HttpServer.WebSocketHttpServerHandler.WebSocketHttpServerHandler |
( |
OSHttpRequest |
preq, |
|
|
IHttpClientContext |
pContext, |
|
|
int |
bufferlen |
|
) |
| |
|
inline |
void OpenSim.Framework.Servers.HttpServer.WebSocketHttpServerHandler.Close |
( |
string |
message | ) |
|
|
inline |
Closes the websocket connection. Sends a close message to the other side if it hasn't already done so.
- Parameters
-
Definition at line 594 of file WebsocketServerHandler.cs.
void OpenSim.Framework.Servers.HttpServer.WebSocketHttpServerHandler.Dispose |
( |
| ) |
|
|
inline |
IPEndPoint OpenSim.Framework.Servers.HttpServer.WebSocketHttpServerHandler.GetRemoteIPEndpoint |
( |
| ) |
|
|
inline |
void OpenSim.Framework.Servers.HttpServer.WebSocketHttpServerHandler.HandshakeAndUpgrade |
( |
| ) |
|
|
inline |
void OpenSim.Framework.Servers.HttpServer.WebSocketHttpServerHandler.SendData |
( |
byte[] |
data | ) |
|
|
inline |
void OpenSim.Framework.Servers.HttpServer.WebSocketHttpServerHandler.SendMessage |
( |
string |
message | ) |
|
|
inline |
Sends a string to the other side
- Parameters
-
message | the string message that is to be sent |
Definition at line 524 of file WebsocketServerHandler.cs.
void OpenSim.Framework.Servers.HttpServer.WebSocketHttpServerHandler.SendPingCheck |
( |
| ) |
|
|
inline |
Sends a Ping check to the other side. The other side SHOULD respond as soon as possible with a pong frame. This interleaves with incoming fragmented frames.
Definition at line 576 of file WebsocketServerHandler.cs.
void OpenSim.Framework.Servers.HttpServer.WebSocketHttpServerHandler.SetChunksize |
( |
int |
pChunk | ) |
|
|
inline |
void OpenSim.Framework.Servers.HttpServer.WebSocketHttpServerHandler.Start |
( |
| ) |
|
|
inline |
ValidateHandshake OpenSim.Framework.Servers.HttpServer.WebSocketHttpServerHandler.HandshakeValidateMethodOverride = null |
Set this delegate to allow your module to validate the origin of the Websocket request. Primary line of defense against cross site scripting
Definition at line 101 of file WebsocketServerHandler.cs.
int OpenSim.Framework.Servers.HttpServer.WebSocketHttpServerHandler.InitialMsgTimeout |
|
getset |
Set this to the maximum amount of milliseconds to wait for the first complete message to be sent or received on the websocket after upgrading Default, it waits forever. Use this when your Websocket consuming code opens a connection and waits for a message from the other side to avoid a Denial of Service vector.
Definition at line 220 of file WebsocketServerHandler.cs.
int OpenSim.Framework.Servers.HttpServer.WebSocketHttpServerHandler.MaxPayloadSize |
|
getset |
Max Payload Size in bytes. Defaults to 40MB, but could be set upon connection before calling handshake and upgrade.
Definition at line 210 of file WebsocketServerHandler.cs.
bool OpenSim.Framework.Servers.HttpServer.WebSocketHttpServerHandler.NoDelay_TCP_Nagle |
|
getset |
CloseDelegate OpenSim.Framework.Servers.HttpServer.WebSocketHttpServerHandler.OnClose |
DataDelegate OpenSim.Framework.Servers.HttpServer.WebSocketHttpServerHandler.OnData |
PingDelegate OpenSim.Framework.Servers.HttpServer.WebSocketHttpServerHandler.OnPing |
A ping request form the other side will trigger this event. This class responds to the ping automatically. You shouldn't send a pong. it's informational.
Definition at line 70 of file WebsocketServerHandler.cs.
PongDelegate OpenSim.Framework.Servers.HttpServer.WebSocketHttpServerHandler.OnPong |
TextDelegate OpenSim.Framework.Servers.HttpServer.WebSocketHttpServerHandler.OnText |
This is a regular HTTP Request... This may be removed in the future.
When the upgrade from a HTTP request to a Websocket is completed, this will be fired
Definition at line 85 of file WebsocketServerHandler.cs.
The documentation for this class was generated from the following file: