BrowserUk, thank you for jump starting my critical thinking! I see what I did wrong now thanks to you!
When you pointed out about how I accept only one connection into an endless loop it made me realize what I did wrong so I changed the following and, from what I can tell so far, it appears to be working so thank you for your criticisms!!!!
and now it works for every request I tried so far! Thank you BrowserUk!# I ended up changing this my $client = $sock->accept(); # and this while() { while ($client) { . . . } # to this my $client; # and this while() { while ($client = $sock->accept) { . . . }
In reply to Re^3: Bidirectional Client/Server - to fork or not to fork?
by ljamison
in thread Bidirectional Client/Server - to fork or not to fork?
by ljamison
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |