> I would like to program TCP/IP socket under LINUX. I want to establish a
> communication between 2 processes running on 2 different computers. I
> need some source code to start. Can you provide me some source code
> (server and client) ?
> Thanks a lot.
> Limbre Christophe
While I hate to use what I generally refer to as "media hype terms", I'm
going to assume you've heard the term "open source"? Download some source
code for some/any program that uses TCP... pull it apart and try to figure
out how it works. Better yet, read a book on the subject, not to be
deliberately offense to the other coders out there, but we often get a
certain way of doing things stuck in our heads, and always do it that way...
even if there are better ways. Programming books on the other hand, are
generally written by multiple authors, and have multiple editors...
therefore by the time it gets to press, it has had, as a general rule, any
programmer bias stripped out of the sample code. I believe someone just
made a post in this group regarding one such book: here it is, in a message
posted by Lew Pritcher,
"Do yourself a favour and read a couple of good books about TCP and
sockets programming. I'd recommend "Unix Network Programming: Volume
1" by W. Richard Stevens as an excellent startingpoint."
of course it also appears that Lew works for one of Canada's money hogs, but
I guess we can trust him here.
(Just kidding Lew, I used to work for TD myself).