Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
hrydgard
GitHub Repository: hrydgard/ppsspp
Path: blob/master/Common/File/FileDescriptor.h
5669 views
1
#pragma once
2
3
#include <cstring>
4
#include <string>
5
#include <string_view>
6
7
namespace fd_util {
8
9
// Returns true if the fd became ready, false if it didn't or
10
// if there was another error.
11
bool WaitUntilReady(int fd, double timeout, bool for_write = false);
12
13
void SetNonBlocking(int fd, bool non_blocking);
14
15
std::string GetLocalIP(int sock);
16
17
} // fd_util
18
19