Implement more of the sockets API
authorChristopher Dykes <cdykes@fb.com>
Tue, 6 Sep 2016 17:07:44 +0000 (10:07 -0700)
committerFacebook Github Bot 9 <facebook-github-bot-9-bot@fb.com>
Tue, 6 Sep 2016 17:09:05 +0000 (10:09 -0700)
commitbf77be6e78f97bba00f29c75baa6d9cfaccefb7b
treef1323a95388e1b142320bf7150a5a4577ba39e7c
parent1813ca3f3ec3cd72b6a938d2d561fe71ad5a76a7
Implement more of the sockets API

Summary:
This gets the socket portability layer functional enough that most of the socket tests are passing, the few that are left are depending on specific error messages.
This also switches all of the additional overloads for some of the socket functions to forward to a single implementation, to make adjustments to these functions easier in the future. (most of the functions already needed adjustments and would have had to change regardless)

Reviewed By: yfeldblum

Differential Revision: D3814011

fbshipit-source-id: c6793ee74a91d9e164775a2d52c96f54b28b9f24
folly/portability/Sockets.cpp
folly/portability/Sockets.h