mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-25 17:10:23 +00:00
7372b2af48
This abstraction will help us to support multiple IPC transport mechanisms going forward. For now, we only have a TransportSocket that implements the same behavior we previously had, using Unix Sockets for IPC.
24 lines
413 B
C++
24 lines
413 B
C++
/*
|
|
* Copyright (c) 2024, Andrew Kaster <andrew@ladybird.org>
|
|
*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <AK/Platform.h>
|
|
|
|
#if !defined(AK_OS_WINDOWS)
|
|
# include <LibIPC/TransportSocket.h>
|
|
#endif
|
|
|
|
namespace IPC {
|
|
|
|
#if !defined(AK_OS_WINDOWS)
|
|
// Unix Domain Sockets
|
|
using Transport = TransportSocket;
|
|
#else
|
|
# error "LibIPC Transport has not been ported to this platform"
|
|
#endif
|
|
|
|
}
|