MCPcopy Create free account
hub / github.com/TelegramMessenger/cocoon / Callback

Method Callback

net/TcpClient.cpp:209–211  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

207
208 public:
209 Callback(td::actor::ActorId<TcpClientImpl> id, ListeningSocketId listening_socket_id)
210 : id_(id), listening_socket_id_(listening_socket_id) {
211 }
212 void accept(td::SocketFd fd) override {
213 td::actor::send_closure(id_, &TcpClientImpl::accepted_tcp_connection, td::BufferedFd<td::SocketFd>(std::move(fd)),
214 listening_socket_id_);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected