projects
/
folly.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a955b39
)
make getFD() a const method on AsyncUDPServerSocket
author
Claudiu Gheorghe
<cgheorghe@fb.com>
Mon, 26 Jan 2015 22:59:46 +0000
(14:59 -0800)
committer
woo
<woo@fb.com>
Mon, 2 Feb 2015 21:12:52 +0000
(13:12 -0800)
Summary: no need to be mutable, since it only calls AsyncUDPSocket::getFD() which is a const method
Test Plan: just compiled -- simple change
Reviewed By: afrind@fb.com
Subscribers: trunkagent, doug, folly-diffs@
FB internal diff:
D1802765
Signature: t1:
1802765
:
1422307972
:
eab6ab4b16407df6e5034cef78c79f45cd9fa46f
folly/io/async/AsyncUDPServerSocket.h
patch
|
blob
|
history
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();
}