(network gfx) Cleanup

This commit is contained in:
twinaphex 2019-09-17 05:04:57 +02:00
parent c7c7d0988e
commit 861262ef3a

View File

@ -16,6 +16,7 @@
*/
#include <retro_miscellaneous.h>
#include <retro_timers.h>
#include <stdlib.h>
#include <compat/strl.h>
@ -45,7 +46,7 @@
#define str(s) #s
enum {
NETWORK_VIDEO_PIXELFORMAT_RGBA8888,
NETWORK_VIDEO_PIXELFORMAT_RGBA8888 = 0,
NETWORK_VIDEO_PIXELFORMAT_BGRA8888,
NETWORK_VIDEO_PIXELFORMAT_RGB565
} network_video_pixelformat;
@ -124,7 +125,7 @@ try_connect:
{
int ret = socket_connect(fd, (void*)next_addr, true);
if (ret >= 0)// && socket_nonblock(fd))
if (ret >= 0) /* && socket_nonblock(fd)) */
break;
socket_close(fd);
@ -138,14 +139,16 @@ try_connect:
network->fd = fd;
//socket_nonblock(network->fd);
#if 0
socket_nonblock(network->fd);
#endif
if (network->fd > 0)
RARCH_LOG("[network]: Connected to host.\n");
else
{
RARCH_LOG("[network]: Could not connect to host, retrying...\n");
usleep(1000 * 1000);
retro_sleep(1000);
goto try_connect;
}