[lldb] [Host/ConnectionFileDescriptor] Refactor to improve code reuse
authorMichał Górny <mgorny@moritz.systems>
Mon, 25 Oct 2021 20:55:48 +0000 (22:55 +0200)
committerMichał Górny <mgorny@moritz.systems>
Wed, 27 Oct 2021 10:45:52 +0000 (12:45 +0200)
commite1acadb61dfc0810656219c6314019d5132f2c61
tree622f2a3833363a6cd9f1ac6087f9df09ce1443c4
parent9bc7e543b4ef5eef2be2325204db20073fc18e36
[lldb] [Host/ConnectionFileDescriptor] Refactor to improve code reuse

Refactor ConnectionFileDescriptor to improve code reuse for different
types of sockets.  Unify method naming.

While at it, remove some (now-)dead code from Socket.

Differential Revision: https://reviews.llvm.org/D112495
lldb/include/lldb/Host/Socket.h
lldb/include/lldb/Host/posix/ConnectionFileDescriptorPosix.h
lldb/source/Host/common/Socket.cpp
lldb/source/Host/posix/ConnectionFileDescriptorPosix.cpp