Re: Unable to Accept TCP Connection

2018-04-21 Thread R0b0t1
On Sat, Apr 21, 2018 at 6:20 PM, Mark Geisert wrote: > R0b0t1 wrote: >> >> The following never prints "Hello, world!" >> >> >> struct sboot_state { >> struct sockaddr_in haddr; >> struct sockaddr caddr; >> socklen_t clen; >> int sfd, cfd; >> } state = { 0 }; >> >> state.haddr.sin_f

Re: Unable to Accept TCP Connection

2018-04-21 Thread Mark Geisert
R0b0t1 wrote: The following never prints "Hello, world!" struct sboot_state { struct sockaddr_in haddr; struct sockaddr caddr; socklen_t clen; int sfd, cfd; } state = { 0 }; state.haddr.sin_family = AF_INET; state.haddr.sin_port = 2200; You can use the Windows 'netstat' to se

Unable to Accept TCP Connection

2018-04-21 Thread R0b0t1
The following never prints "Hello, world!" struct sboot_state { struct sockaddr_in haddr; struct sockaddr caddr; socklen_t clen; int sfd, cfd; } state = { 0 }; state.haddr.sin_family = AF_INET; state.haddr.sin_port = 2200; state.haddr.sin_addr.s_addr = INADDR_ANY; state.sfd = so