[LCP]Network programming.

David Spencer David.W.Spencer at oracle.com
Tue Sep 25 04:03:20 UTC 2001


Depends how useful you want to be, and what you want to achieve in the
long term.

If you want to sort out your own protocol just for fun, just hook up an
RS232 wire between two computers and use the serial interface - this is
probably the easiest way to get started.

Alternatively use stuff that is already out there, the obvious choice is
TCP/IP and learn socket programming.  Given the amount of TCP/IP stuff
out there it really is rather pointless to replace it, and rather useful
to know it.  Open a socket and with four simple numbers you can be
talking to a computer anywhere on the planet (or off).

Socket programming is also dead easy.  The guys who wrote the socket
interface really did a good job of it.

You can create a protocol on top of TCP/IP as well.  Just use TCP/IP as
the substrate; that can be fun.

Dave.



Kent Nyberg wrote:
> 
> Hello!
> 
> I am trying to learn how to do networkprogramming but have run into some
> problems.
> 
> I want to create some kind of client/server thing with it's own protocol
> for communication.
> The thing is that i cant realy figure out how this should be done.
> Can some one recomend som example or good documentation on how to create
> a protocol for
> network communication?
> 
> --
> Kent Nyberg.
> ICQ:    64479321
> 
> _______________________________________________
> This is the Linux C Programming List
> :  http://lists.linux.org.au/listinfo/linuxcprogramming List



More information about the linuxCprogramming mailing list