[lldb/Host] Modernize some socket functions
authorPavel Labath <pavel@labath.sk>
Thu, 23 Apr 2020 11:54:11 +0000 (13:54 +0200)
committerPavel Labath <pavel@labath.sk>
Thu, 23 Apr 2020 12:20:26 +0000 (14:20 +0200)
commitc9e6b7010c6998b6df50ff376425d1d4e4937bea
tree129ca5a7dff57a57e679d3982605edac3a65c300
parentf50bc823fe6f4279eb2f426dd54f3151878c0216
[lldb/Host] Modernize some socket functions

return Expected<Socket> instead of a Status object plus a Socket*&
argument.
lldb/include/lldb/Host/Socket.h
lldb/include/lldb/Host/common/UDPSocket.h
lldb/source/Host/common/Socket.cpp
lldb/source/Host/common/UDPSocket.cpp
lldb/source/Host/posix/ConnectionFileDescriptorPosix.cpp
lldb/unittests/Host/SocketTest.cpp