[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>
Thu, 28 Oct 2021 17:24:10 +0000 (19:24 +0200)
commite50f02ba7ed846f944a369e6738174a5eabfbdcc
treef24b011ff4f36f6f3c706092d75879a801ef551f
parentc45045bfd04af92044979243a6d7d8e8a1b47133
[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