[XAM/Net] Added unified method of returning WSA error codes

This commit is contained in:
Gliniak
2021-11-17 13:05:24 +01:00
parent 0b90d5edf9
commit d4e5ecb93b
3 changed files with 19 additions and 20 deletions

View File

@@ -118,6 +118,8 @@ class XSocket : public XObject {
int SendTo(uint8_t* buf, uint32_t buf_len, uint32_t flags, N_XSOCKADDR_IN* to,
uint32_t to_len);
uint32_t GetLastWSAError() const;
struct packet {
// These values are in network byte order.
xe::be<uint16_t> src_port;