Commit a9b13cab authored by Orvid King's avatar Orvid King Committed by Facebook Github Bot

Remove the fd overload of ShutdownSocketSet::*

Summary: No longer needed

Reviewed By: djwatson

Differential Revision: D13456759

fbshipit-source-id: ea08992d3bd4babbdcf326b0c01f64cd1184784f
parent be5f9089
......@@ -47,9 +47,6 @@ class ShutdownSocketSet : private boost::noncopyable {
* properly) and not by calling close() on the file descriptor.
*/
void add(NetworkSocket fd);
void add(int fd) {
add(NetworkSocket::fromFd(fd));
}
/**
* Remove a socket from the list of sockets managed by ShutdownSocketSet.
......@@ -58,18 +55,12 @@ class ShutdownSocketSet : private boost::noncopyable {
* being shutdown().
*/
void remove(NetworkSocket fd);
void remove(int fd) {
remove(NetworkSocket::fromFd(fd));
}
/**
* Close a socket managed by ShutdownSocketSet. Returns the same return code
* as ::close() (and sets errno accordingly).
*/
int close(NetworkSocket fd);
int close(int fd) {
return close(NetworkSocket::fromFd(fd));
}
/**
* Shut down a socket. If abortive is true, we perform an abortive
......@@ -81,9 +72,6 @@ class ShutdownSocketSet : private boost::noncopyable {
* operation, just call ::shutdown() on the socket.
*/
void shutdown(NetworkSocket fd, bool abortive = false);
void shutdown(int fd, bool abortive = false) {
shutdown(NetworkSocket::fromFd(fd), abortive);
}
/**
* Immediate shutdown of all connections. This is a hard-hitting hammer;
......
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