For an example of a server using Winsock, look at the .zip file I uploaded for the "Windows XP and Sockets Part Deux" thread on this forum; reach it through this link, http://forums.devshed.com/t66453/sf...c4493942f2.html
. rtimed is a tcp time server (port 37) to respond to my Linux laptop's rdate utility.
You should be able to compile it using your Borland C++ Builder, AKA "BCB" (I assume that is what you meant by "Borland compiler" -- we're talking about the need for Win32 support here). It was written as a console app using the MinGW port of gcc, but here's what it should take for you to compile it:
1. In BCB, create a new application. If it's able to make console apps, then go with that. If not, then you could have a button click create a worker thread for rtimed to run in -- my concern is that the server's infinite loop servicing requests does not cause the rest of your program to hang.
2. Copy the rtimed code into your application.
3. If you do not have support for getopt (you probably don't), then follow the instructions I give later in that thread for disabling that feature.
4. In the project options, add the library, wsock32.lib, or whatever it's called in BCB.
That should do it.
As for the clients, the suggestion you got about kdevelop sounds like you want them to be GUI apps. I've only done command-line apps so far, but the sockets code will be the same either way. My understanding is that you'll be using gcc anyway and in this case you shouldn't need to link in any additional libraries. However, sockets programming in Linux requires various header files.
So far, I've only written a few servers for Linux and my client apps have all been for Windows, so I don't have any examples of my own to show you. My suggestion is that you follow my previous suggestion of going to the website for the book, "The Pocket Guide to TCP/IP Sockets: C Version", and getting their example code there. Again, you will find the link through my sockets programming resources page at http://members.aol.com/DSC30574/sockets/resources.html