7#include <cosmos/SysString.hxx>
8#include <cosmos/net/UnixConnection.hxx>
9#include <cosmos/net/UnixDatagramSocket.hxx>
10#include <cosmos/net/types.hxx>
12namespace cosmos::net {
15COSMOS_API std::pair<UnixConnection, UnixConnection> create_stream_socket_pair(
16 const SocketFlags flags = SocketFlags{SocketFlag::CLOEXEC});
18COSMOS_API std::pair<UnixConnection, UnixConnection> create_seqpacket_socket_pair(
19 const SocketFlags flags = SocketFlags{SocketFlag::CLOEXEC});
21COSMOS_API std::pair<UnixDatagramSocket, UnixDatagramSocket> create_dgram_socket_pair(
22 const SocketFlags flags = SocketFlags{SocketFlag::CLOEXEC});
36COSMOS_API std::string index_to_name(
const InterfaceIndex index);
43COSMOS_API std::string get_hostname();
InterfaceIndex
A network device interface index.