Lines Matching full:socket
20 #include "rtc_base/socket.h"
30 AsyncTCPSocketBase(Socket* socket, size_t max_packet_size);
51 int GetOption(Socket::Option opt, int* value) override;
52 int SetOption(Socket::Option opt, int value) override;
57 // Binds and connects `socket` and creates AsyncTCPSocket for
58 // it. Takes ownership of `socket`. Returns null if bind() or
59 // connect() fail (`socket` is destroyed in that case).
60 static Socket* ConnectSocket(Socket* socket,
72 // Called by the underlying socket
73 void OnConnectEvent(Socket* socket);
74 void OnReadEvent(Socket* socket);
75 void OnWriteEvent(Socket* socket);
76 void OnCloseEvent(Socket* socket, int error);
78 std::unique_ptr<Socket> socket_;
87 // Binds and connects `socket` and creates AsyncTCPSocket for
88 // it. Takes ownership of `socket`. Returns null if bind() or
89 // connect() fail (`socket` is destroyed in that case).
90 static AsyncTCPSocket* Create(Socket* socket,
93 explicit AsyncTCPSocket(Socket* socket);
107 explicit AsyncTcpListenSocket(std::unique_ptr<Socket> socket);
112 virtual void HandleIncomingConnection(rtc::Socket* socket);
115 // Called by the underlying socket
116 void OnReadEvent(Socket* socket);
118 std::unique_ptr<Socket> socket_;