Skip to content

Commit

Permalink
[src] Extend the ability of RpcSyncChannel (let users set socket opti…
Browse files Browse the repository at this point in the history
…ons)
  • Loading branch information
Sigma711 committed Aug 26, 2023
1 parent 1beba85 commit 0ebfffa
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/rpc_channel.h
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,8 @@ class RpcSyncChannel : public ::google::protobuf::RpcChannel {

void OnMessage(int sock_fd, IoBuffer* io_buffer, TimePoint receive);

int Fd() const { return socket_fd_; }

private:
void OnRpcMessage(int sock_fd,
const std::shared_ptr<RpcMessage>& rpc_message_ptr,
Expand Down

0 comments on commit 0ebfffa

Please sign in to comment.