summaryrefslogtreecommitdiffstats
path: root/third_party/libwebrtc/rtc_base/server_socket_adapters.h
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-06-12 05:43:14 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-06-12 05:43:14 +0000
commit8dd16259287f58f9273002717ec4d27e97127719 (patch)
tree3863e62a53829a84037444beab3abd4ed9dfc7d0 /third_party/libwebrtc/rtc_base/server_socket_adapters.h
parentReleasing progress-linux version 126.0.1-1~progress7.99u1. (diff)
downloadfirefox-8dd16259287f58f9273002717ec4d27e97127719.tar.xz
firefox-8dd16259287f58f9273002717ec4d27e97127719.zip
Merging upstream version 127.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'third_party/libwebrtc/rtc_base/server_socket_adapters.h')
-rw-r--r--third_party/libwebrtc/rtc_base/server_socket_adapters.h34
1 files changed, 0 insertions, 34 deletions
diff --git a/third_party/libwebrtc/rtc_base/server_socket_adapters.h b/third_party/libwebrtc/rtc_base/server_socket_adapters.h
index b18c7a6a65..05dcd292f8 100644
--- a/third_party/libwebrtc/rtc_base/server_socket_adapters.h
+++ b/third_party/libwebrtc/rtc_base/server_socket_adapters.h
@@ -38,40 +38,6 @@ class AsyncSSLServerSocket : public BufferedReadAdapter {
void ProcessInput(char* data, size_t* len) override;
};
-// Implements a proxy server socket for the SOCKS protocol.
-class AsyncSocksProxyServerSocket : public AsyncProxyServerSocket {
- public:
- explicit AsyncSocksProxyServerSocket(Socket* socket);
-
- AsyncSocksProxyServerSocket(const AsyncSocksProxyServerSocket&) = delete;
- AsyncSocksProxyServerSocket& operator=(const AsyncSocksProxyServerSocket&) =
- delete;
-
- private:
- void ProcessInput(char* data, size_t* len) override;
- void DirectSend(const ByteBufferWriter& buf);
-
- void HandleHello(ByteBufferReader* request);
- void SendHelloReply(uint8_t method);
- void HandleAuth(ByteBufferReader* request);
- void SendAuthReply(uint8_t result);
- void HandleConnect(ByteBufferReader* request);
- void SendConnectResult(int result, const SocketAddress& addr) override;
-
- void Error(int error);
-
- static const int kBufferSize = 1024;
- enum State {
- SS_HELLO,
- SS_AUTH,
- SS_CONNECT,
- SS_CONNECT_PENDING,
- SS_TUNNEL,
- SS_ERROR
- };
- State state_;
-};
-
} // namespace rtc
#endif // RTC_BASE_SERVER_SOCKET_ADAPTERS_H_