diff options
author | mailwl <mailwl@gmail.com> | 2018-03-25 11:41:00 +0200 |
---|---|---|
committer | mailwl <mailwl@gmail.com> | 2018-03-25 11:41:00 +0200 |
commit | 692639e9b786b48303d0735222b5eba99d016d21 (patch) | |
tree | 75febb12f0247dc8f855bd1be845722141005287 /src/core/hle/service/sockets/bsd.h | |
parent | Merge pull request #275 from MerryMage/addticks-dynarmic (diff) | |
download | yuzu-692639e9b786b48303d0735222b5eba99d016d21.tar yuzu-692639e9b786b48303d0735222b5eba99d016d21.tar.gz yuzu-692639e9b786b48303d0735222b5eba99d016d21.tar.bz2 yuzu-692639e9b786b48303d0735222b5eba99d016d21.tar.lz yuzu-692639e9b786b48303d0735222b5eba99d016d21.tar.xz yuzu-692639e9b786b48303d0735222b5eba99d016d21.tar.zst yuzu-692639e9b786b48303d0735222b5eba99d016d21.zip |
Diffstat (limited to 'src/core/hle/service/sockets/bsd.h')
-rw-r--r-- | src/core/hle/service/sockets/bsd.h | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/src/core/hle/service/sockets/bsd.h b/src/core/hle/service/sockets/bsd.h new file mode 100644 index 000000000..32d949e95 --- /dev/null +++ b/src/core/hle/service/sockets/bsd.h @@ -0,0 +1,31 @@ +// 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 final : public ServiceFramework<BSD> { +public: + explicit BSD(const char* name); + ~BSD() = default; + +private: + void RegisterClient(Kernel::HLERequestContext& ctx); + void StartMonitoring(Kernel::HLERequestContext& ctx); + void Socket(Kernel::HLERequestContext& ctx); + void Connect(Kernel::HLERequestContext& ctx); + void SendTo(Kernel::HLERequestContext& ctx); + void Close(Kernel::HLERequestContext& ctx); + + /// Id to use for the next open file descriptor. + u32 next_fd = 1; +}; + +} // namespace Sockets +} // namespace Service |