Commit b2fdd4d5 authored by wangyao02's avatar wangyao02

-remove set_sock_opt from Controller

parent 7c06dae2
......@@ -1392,16 +1392,6 @@ int Controller::get_sock_opt(int level, int optname, void* optval, socklen_t* op
}
}
int Controller::set_sock_opt(int level, int optname, void* optval, socklen_t optlen) {
Socket* s = _current_call.sending_sock.get();
if (s) {
return setsockopt(s->fd(), level, optname, optval, optlen);
} else {
LOG(WARNING) << "sock is null";
return EINVAL;
}
}
#if defined(OS_MACOSX)
typedef sig_t SignalHandler;
#else
......
......@@ -592,9 +592,9 @@ private:
void set_used_by_rpc() { add_flag(FLAGS_USED_BY_RPC); }
bool is_used_by_rpc() const { return has_flag(FLAGS_USED_BY_RPC); }
// Get/set sock option. .e.g get vip info through ttm kernel module hook,
// Get sock option. .e.g get vip info through ttm kernel module hook,
int get_sock_opt(int level, int optname, void* optval, socklen_t* optlen);
int set_sock_opt(int level, int optname, void* optval, socklen_t optlen);
private:
// NOTE: align and group fields to make Controller as compact as possible.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment