Teen Programmers Unite  


Return to forum top

Simple Winsock Solution

Posted by ZeroTrace [send private reply] at May 25, 2003, 12:21:10 PM

I have noticed a lot of messages on this board about network programming in windows. I had this same problem myself and ended up writing a class to help me with writing simple programs. It is by no means complete or working and it is definitely not perfect code. Just meant to be functional. Right now it only does TCP/IP but could be easily modified for UDP. You should have no problems with it as long as you don't try to send more than 1K at a time or receive 16K at a time. The 16K limit is coded in because the recv function requires it. You can change this with the #define at the top of SockClass.cpp


You must be logged in to post messages and see which you have already read.

Log on
Save for later automatic logon

Register as a new user
Copyright TPU 2002. See the Credits and About TPU for more information.