C# running websocket connection under tor circuit

I'm creating an application on C# NET 4.0. It's an anonymous messanger, which have to run under tor SOCKS proxy. I know, that tor's proxy is SOCKS5 and it's 127.0.0.1 port 9150.

The connection is not just http requests, but it's websocket protocol. I'm using Websocket4net for connection.

So it has 4 main events: OnMessage OnOpen OnClose OnError

The connection setup looks like

ServerSocket = new Socket("ws://localhost:3000/");

So, how do I use tor with this?

链接地址: http://www.djcxy.com/p/62648.html

上一篇: C ++ HTTP over SOCKS5(TOR)400错误请求

下一篇: C#在tor电路下运行websocket连接