Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1317)

Unified Diff: net/socket/socket_libevent.cc

Issue 509133002: Raw SocketDescriptor variant of UnixDomainServerSocket::Accept (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: net/socket/socket_libevent.cc
diff --git a/net/socket/socket_libevent.cc b/net/socket/socket_libevent.cc
index 84bd3a7ea6f048787151d79c91a8ef569ef853c0..1696bf77a68350111295b7fd45709cdbfab9b70e 100644
--- a/net/socket/socket_libevent.cc
+++ b/net/socket/socket_libevent.cc
@@ -106,6 +106,13 @@ int SocketLibevent::AdoptConnectedSocket(SocketDescriptor socket,
return OK;
}
+SocketDescriptor SocketLibevent::ReleaseConnectedSocket() {
+ SocketDescriptor tmp_fd = kInvalidSocket;
+ tmp_fd = socket_fd_;
byungchul 2014/08/27 23:35:51 why not just "SocketDescriptor tmp_fd = socket_fd_
Chris Masone 2014/08/28 17:53:16 ...I have no idea :-)
+ socket_fd_ = kInvalidSocket;
+ return tmp_fd;
+}
+
int SocketLibevent::Bind(const SockaddrStorage& address) {
DCHECK(thread_checker_.CalledOnValidThread());
DCHECK_NE(kInvalidSocket, socket_fd_);

Powered by Google App Engine
This is Rietveld 408576698