Hi
Does anyone have any samples of a complete programming using either CSocket or the Winsock API. That part I'm having trouble is how to figure out when an event is fired, on OnReceive(), OnConnect() etc etc.
Thanks
Hi
Does anyone have any samples of a complete programming using either CSocket or the Winsock API. That part I'm having trouble is how to figure out when an event is fired, on OnReceive(), OnConnect() etc etc.
Thanks
Here is a tut that I liked, although the author's programming style wasn't very good they did a good job explaining.
http://www.vijaymukhi.com/vmis/vmchap4.htm
In Winsock programming you have several I/O models to choose from including WSAAsyncSelect, overlapped I/O, and port-completion I/O.
You should buy a good reference book on Winsock. One reason the fact that the implemention of robust I/O model such as overlapped I/O and port-completion I/O can be long and complicated.
Kuphryn
yeah i read that like a year ago, i ahve it printed out and i refer to it alotOriginally posted by master5001
Here is a tut that I liked, although the author's programming style wasn't very good they did a good job explaining.
http://www.vijaymukhi.com/vmis/vmchap4.htm
kuphryn: do you have any suggestions on a book? that would be great, thanks man
I recommend Network Programming for Microsoft Windows, Second Edition by Anthony Jones and Jim Ohmund.
Kuphryn
I have one. I programmed a general TCP/IP client. It's kinda crude but it would do for experimental purposes. And I used mostly synchronous functions on it. I'll post it mext time get back here.
All men are created equal. But some are more equal than others.
Visit me at http://www.angelfire.com/my/billholm
alright, sounds good, thanks guys
i saw your review on amazon, ill order it. thanskOriginally posted by kuphryn
I recommend Network Programming for Microsoft Windows, Second Edition by Anthony Jones and Jim Ohmund.
Kuphryn
Cool!
Kuphryn
Oh f%&k! I forgot my goddam floppy disk.
All men are created equal. But some are more equal than others.
Visit me at http://www.angelfire.com/my/billholm
Okay! Here it is.
All men are created equal. But some are more equal than others.
Visit me at http://www.angelfire.com/my/billholm
alright cool, thanks
so whenever there is incoming data, int recv_data(char *data); will be called?
Yes that's right.
When I programmed it, I'm assuming that the prog only receives data whenever it communicates with a server. It would be proper to call recv_data() after send_data() has been invoked. It's some sort of synchronous data transfer.
All men are created equal. But some are more equal than others.
Visit me at http://www.angelfire.com/my/billholm