static private CreateClientStream ( |
||
client | ||
secure | bool | |
host | string | |
validationCallback | System | |
return |
// As Client private void setClientStream() { var host = _uri.DnsSafeHost; var port = _uri.Port; _tcpClient = new TcpClient(host, port); _wsStream = WsStream.CreateClientStream(_tcpClient, host, _secure); }
// As Client private void createClientStream() { var host = _uri.DnsSafeHost; var port = _uri.Port > 0 ? _uri.Port : _isSecure ? 443 : 80; _tcpClient = new TcpClient(host, port); _wsStream = WsStream.CreateClientStream(_tcpClient, host, _isSecure); }
// As client private void init() { _base64key = createBase64Key(); var host = _uri.DnsSafeHost; var port = _uri.Port; _tcpClient = new TcpClient(host, port); _wsStream = WsStream.CreateClientStream(_tcpClient, host, _secure); }