mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-07-11 17:45:11 +02:00
18 lines
357 B
C++
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
|