projects
/
folly.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
make getFD() a const method on AsyncUDPServerSocket
[folly.git]
/
folly
/
io
/
async
/
AsyncUDPServerSocket.h
diff --git
a/folly/io/async/AsyncUDPServerSocket.h
b/folly/io/async/AsyncUDPServerSocket.h
index f29353348344fb1bab118ca2fb3b4f832ccc4de9..e443c00670d8d83007d31a4a765ca05af5ee2ac6 100644
(file)
--- a/
folly/io/async/AsyncUDPServerSocket.h
+++ b/
folly/io/async/AsyncUDPServerSocket.h
@@
-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();
}