Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 14804
  • Last Modified:

tcp client-server example

Hi,
where can I find a very simple example of tcp client-server text aplication?

Thanks
0
jjescri
Asked:
jjescri
1 Solution
 
HahoCommented:
u can learn to write a simple client server app here at:
http://www.ecst.csuchico.edu/~beej/guide/net/

excellent guide..
0
 
The--CaptainCommented:
"Java in a Nutshell" and "Programming Perl" by O'Reilly both have examples of how to do this in those respective languages.  If you want to learn it in C, I'd recommend "Unix Network Programming" (the publisher eludes me - someone stole my copy).

You might want to link this into one of the programming TAs with a zero-point question that links back here - I'm sure there are plenty of folks there who could post actualy code examples...

If you're ambitious, grab the source for 'finger' or some other simple text-based client/server - that should provide more than enough example...

-Jon

0
 
oresteattCommented:
Here's an example on TCP/IP Socket programming in Java:

www.seas.upenn.edu/~ross/book/apps/sockettcp.htm
0

Featured Post

NEW Veeam Backup for Microsoft Office 365 1.5

With Office 365, it’s your data and your responsibility to protect it. NEW Veeam Backup for Microsoft Office 365 eliminates the risk of losing access to your Office 365 data.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now