blob: 539019f24b2b8b2f52d773e5fe28480dcacffe21 [file] [log] [blame] [edit]
// Copyright 2022 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef LIB_FDIO_SOCKET_H_
#define LIB_FDIO_SOCKET_H_
#include <fidl/fuchsia.posix.socket.packet/cpp/wire.h>
#include <fidl/fuchsia.posix.socket.raw/cpp/wire.h>
#include <fidl/fuchsia.posix.socket/cpp/wire.h>
#include <lib/zx/status.h>
#include <fbl/ref_ptr.h>
struct fdio;
fbl::RefPtr<fdio> fdio_synchronous_datagram_socket_allocate();
fbl::RefPtr<fdio> fdio_datagram_socket_allocate();
fbl::RefPtr<fdio> fdio_stream_socket_allocate();
fbl::RefPtr<fdio> fdio_raw_socket_allocate();
fbl::RefPtr<fdio> fdio_packet_socket_allocate();
#endif // LIB_FDIO_SOCKET_H_