IOS/Socket: Place WiiSocket's private interface below the public interface
In the rest of the codebase we try to position the private interface below the public interface (unless it's otherwise not possible).
This commit is contained in:
parent
abb33637a3
commit
ad575a1556
|
@ -173,6 +173,12 @@ struct WiiSockAddrIn
|
||||||
|
|
||||||
class WiiSocket
|
class WiiSocket
|
||||||
{
|
{
|
||||||
|
public:
|
||||||
|
WiiSocket() = default;
|
||||||
|
~WiiSocket();
|
||||||
|
void operator=(WiiSocket const&) = delete;
|
||||||
|
|
||||||
|
private:
|
||||||
struct sockop
|
struct sockop
|
||||||
{
|
{
|
||||||
Request request;
|
Request request;
|
||||||
|
@ -184,12 +190,6 @@ class WiiSocket
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
private:
|
|
||||||
s32 fd = -1;
|
|
||||||
s32 wii_fd = -1;
|
|
||||||
bool nonBlock = false;
|
|
||||||
std::list<sockop> pending_sockops;
|
|
||||||
|
|
||||||
friend class WiiSockMan;
|
friend class WiiSockMan;
|
||||||
void SetFd(s32 s);
|
void SetFd(s32 s);
|
||||||
void SetWiiFd(s32 s);
|
void SetWiiFd(s32 s);
|
||||||
|
@ -200,10 +200,10 @@ private:
|
||||||
void DoSock(Request request, SSL_IOCTL type);
|
void DoSock(Request request, SSL_IOCTL type);
|
||||||
void Update(bool read, bool write, bool except);
|
void Update(bool read, bool write, bool except);
|
||||||
bool IsValid() const { return fd >= 0; }
|
bool IsValid() const { return fd >= 0; }
|
||||||
public:
|
s32 fd = -1;
|
||||||
WiiSocket() = default;
|
s32 wii_fd = -1;
|
||||||
~WiiSocket();
|
bool nonBlock = false;
|
||||||
void operator=(WiiSocket const&) = delete;
|
std::list<sockop> pending_sockops;
|
||||||
};
|
};
|
||||||
|
|
||||||
class WiiSockMan
|
class WiiSockMan
|
||||||
|
|
Loading…
Reference in New Issue