public GetConnectionInstance ( TcpClient aClient, Bauglir.Ex.WebSocketHeaders aHeaders, string aHost, string aPort, string aResourceName, string aOrigin, string aCookie, string aVersion, string &aProtocol, string &aExtension, int &aHttpCode ) : WebSocketServerConnection |
aClient |
System.Net.Sockets.TcpClient |
TcpClient requesting connection, client MUST NOT be closed by this function |
aHeaders |
Bauglir.Ex.WebSocketHeaders |
|
aHost |
string |
|
aPort |
string |
|
aResourceName |
string |
|
aOrigin |
string |
If "-" passed, no origin was passed by client |
aCookie |
string |
If "-" passed, no cookies was passed by client |
aVersion |
string |
|
aProtocol |
string |
In value is list of protocol requested by client ("-" if non requested). Out values should be list of protocol supported by server based on client request, if "-" is returned, no protocol will be negotitated |
aExtension |
string |
In value is list of extensions requested by client ("-" if non requested). Out values should be list of extensions supported by server based on client request, if "-" is returned, no extensions will be negotitated |
aHttpCode |
int |
HTTP result code to return, if other than 101 is returned, connection will be automatically closed. 101 is default value |
return |
WebSocketServerConnection |
|