Operating System - HP-UX
1820619 Members
1860 Online
109626 Solutions
New Discussion юеВ

Re: TCP Socket programming in C

 
SOLVED
Go to solution
CKT
Advisor

TCP Socket programming in C

Hi,

I am wondering if anyone has written any simple C program to establish a TCP connection in a client/server environment and to read/write strings from/to the TCP sockets. I would appreciate it if you could email me such sample codes in C and is compilable in HP-UX 10.20. Thanks.

JT
You can't turn back the clock, but you can always rewind it again.
2 REPLIES 2
Andreas Voss
Honored Contributor
Solution

Re: TCP Socket programming in C

Hi,

look at your system under:
/usr/lib/demos/networking/socket
There are some sample C files for working with sockets.

Greetings

Andrew
Albert E. Whale, CISSP
Honored Contributor

Re: TCP Socket programming in C

Jules,

There is a link on my homepage for the Unix Socket Programming FAQ. Here's the link:

http://www.lcg.org/sock-faq/

I'm sure that you;ll find it useful. There are other links and references which you might be interested in as well. My homepage is at http://www.hky.com/aewhale.html

Hope that helps.
Sr. Systems Consultant @ ABS Computer Technology, Inc. http://www.abs-comptech.com/aewhale.html & http://www.ancegroup.com