forked from suyu/suyu
463356f0a7
* bsd: start stubbing bsd:u and sfdnsres * bsd: stubbed RegisterClient * bsd: attempt to get past socket() * bsd: fix some wrong assumptions about IPC * bsd: fix format specifiers * bsd: stubbed Connect() * bsd: stubbed SendTo() * made requested changes * sockets: respect alphabetical order at service installation * run clang-format * bsd: start stubbing bsd:u and sfdnsres * bsd: stubbed RegisterClient * bsd: attempt to get past socket() * bsd: fix some wrong assumptions about IPC * bsd: fix format specifiers * bsd: stubbed Connect() * bsd: stubbed SendTo() * made requested changes * sockets: respect alphabetical order at service installation * run clang-format * run clang-format (2)
29 lines
695 B
C++
29 lines
695 B
C++
// Copyright 2018 yuzu emulator team
|
|
// Licensed under GPLv2 or any later version
|
|
// Refer to the license.txt file included.
|
|
|
|
#pragma once
|
|
|
|
#include "core/hle/kernel/hle_ipc.h"
|
|
#include "core/hle/service/service.h"
|
|
|
|
namespace Service {
|
|
namespace Sockets {
|
|
|
|
class BSD_U final : public ServiceFramework<BSD_U> {
|
|
public:
|
|
BSD_U();
|
|
~BSD_U() = default;
|
|
|
|
private:
|
|
void RegisterClient(Kernel::HLERequestContext& ctx);
|
|
void Socket(Kernel::HLERequestContext& ctx);
|
|
void Connect(Kernel::HLERequestContext& ctx);
|
|
void SendTo(Kernel::HLERequestContext& ctx);
|
|
|
|
/// Id to use for the next open file descriptor.
|
|
u32 next_fd = 1;
|
|
};
|
|
|
|
} // namespace Sockets
|
|
} // namespace Service
|