If you try reading from the socket, your program will become permanently blocked.
The select call takes care of that. The program only reads when there is data available and the buffer is not full.
In reply to Re^4: golf challenge: one-liner netcat clone
by salva
in thread golf challenge: one-liner netcat clone
by salva
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |