More ps3 networking fixs.
This commit is contained in:
parent
a565ba0149
commit
73aa381b27
|
@ -156,8 +156,10 @@ static INLINE bool isagain(int bytes)
|
|||
if (WSAGetLastError() != WSAEWOULDBLOCK)
|
||||
return false;
|
||||
return true;
|
||||
#elif defined(__CELLOS_LV2__) && !defined(__PSL1GHT__)
|
||||
return (sys_net_errno == SYS_NET_EWOULDBLOCK) || (sys_net_errno == SYS_NET_EAGAIN);//35
|
||||
#elif defined(VITA)
|
||||
return (bytes<0 && (bytes == SCE_NET_ERROR_EAGAIN || bytes == SCE_NET_ERROR_EWOULDBLOCK));
|
||||
return (bytes<0 && (bytes == SCE_NET_ERROR_EAGAIN || bytes == SCE_NET_ERROR_EWOULDBLOCK));
|
||||
#elif defined(WIIU)
|
||||
return (bytes == -1) && ((socketlasterr() == SO_SUCCESS) || (socketlasterr() == SO_EWOULDBLOCK));
|
||||
#else
|
||||
|
|
|
@ -193,12 +193,6 @@ int getaddrinfo_retro(const char *node, const char *service,
|
|||
in_addr->sin_family = AF_INET;
|
||||
in_addr->sin_port = inet_htons(strtoul(service, NULL, 0));
|
||||
|
||||
//sin_port seems to be the wrong endian for ps3
|
||||
#if defined(__CELLOS_LV2__) && !defined(__PSL1GHT__)
|
||||
in_addr->sin_port = (in_addr->sin_port>>8) | (in_addr->sin_port<<8);
|
||||
#endif
|
||||
|
||||
|
||||
if (!node && (hints->ai_flags & AI_PASSIVE))
|
||||
in_addr->sin_addr.s_addr = INADDR_ANY;
|
||||
else if (node && isdigit(*node))
|
||||
|
|
Loading…
Reference in New Issue