make getFD() a const method on AsyncUDPServerSocket
[folly.git] / folly / io / async / AsyncUDPServerSocket.h
index f29353348344fb1bab118ca2fb3b4f832ccc4de9..e443c00670d8d83007d31a4a765ca05af5ee2ac6 100644 (file)
@@ -114,7 +114,7 @@ class AsyncUDPServerSocket : private AsyncUDPSocket::ReadCallback {
     socket_->resumeRead(this);
   }
 
-  int getFD() {
+  int getFD() const {
     CHECK(socket_) << "Need to bind before getting FD";
     return socket_->getFD();
   }