Files
ppsspp/Common/File/FileDescriptor.h
2025-09-01 00:15:23 +02:00

18 lines
357 B
C++

#pragma once
#include <cstring>
#include <string>
#include <string_view>
namespace fd_util {
// Returns true if the fd became ready, false if it didn't or
// if there was another error.
bool WaitUntilReady(int fd, double timeout, bool for_write = false);
void SetNonBlocking(int fd, bool non_blocking);
std::string GetLocalIP(int sock);
} // fd_util