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

AsyncSocket::newSocket fd to NetworkSocket overload

Summary: The file descriptor overload will be going away.

Reviewed By: yfeldblum

Differential Revision: D13628834

fbshipit-source-id: bc81ffdf011113479c95c1e8ae7deb4d0ff91e41
parent 670a8e06
...@@ -28,7 +28,8 @@ namespace folly { ...@@ -28,7 +28,8 @@ namespace folly {
TEST(AsyncSocketTest, getSockOpt) { TEST(AsyncSocketTest, getSockOpt) {
EventBase evb; EventBase evb;
std::shared_ptr<AsyncSocket> socket = AsyncSocket::newSocket(&evb, 0); std::shared_ptr<AsyncSocket> socket =
AsyncSocket::newSocket(&evb, folly::NetworkSocket::fromFd(0));
int val; int val;
socklen_t len; socklen_t len;
......
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