Anyone have any example non-blocking c winsock programs? I am trying, for no particular application, make a program that I can connect to a port, and be able to receive banners and issue commands back if i like. Something like a telnet app but without the negotiation and emulations.
My problem is that I do not know how to do a non-blocking program, and that is making my program freeze.
I have looked everywhere for an example, but they assume I know more than I do.
GAN_GR33N
Sep 22 2003, 06:35 PM
i'm not sure i get exactly what you mean jbut this could probably be done much easier with a system comand
Thanks bro. THat was exactly what I needed. I have found so many articles on google about how you are supposed to make a blocking socket with certain calls like recv, but nothing showing the proper usage of select or the FD_ functions.
Thanks again.
Grinler
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.