LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 11-05-2008, 11:57 PM   #1
swift2008
Member
 
Registered: Jul 2008
Posts: 78

Rep: Reputation: 15
server client program


Hi all
can anybudy will provide client server programming code..(tcp/ip)
the code should work as server and also as client..
i would like to run this program between two machines..
they should communicate with eachother.
 
Old 11-06-2008, 12:26 AM   #2
nathacof
Member
 
Registered: Aug 2004
Location: Bear, DE, USA
Distribution: Slackware 11, CentOS 5.2, Ubuntu
Posts: 124

Rep: Reputation: 17
I'm sure you can do it yourself, but why, what purpose do you want this client and server to serve? This kinda sounds like home work so...

Check out the following page, http://en.wikipedia.org/wiki/Client-server.

Also check out, http://tldp.org/LDP/LG/issue74/tougher.html

k tnx bai
 
Old 11-06-2008, 12:27 AM   #3
centos82
Member
 
Registered: Sep 2008
Distribution: CentOS
Posts: 75

Rep: Reputation: 16
I got an error message because my response was too short so I wrote this sentence, but my original response was:
what?
 
Old 11-06-2008, 12:42 AM   #4
swift2008
Member
 
Registered: Jul 2008
Posts: 78

Original Poster
Rep: Reputation: 15
can anybudy help me with a appropriate program(code)
 
Old 11-06-2008, 01:04 AM   #5
abolishtheun
Member
 
Registered: Mar 2008
Posts: 183

Rep: Reputation: 31
Here: a server and a client
 
Old 11-06-2008, 01:36 AM   #6
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,362

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
Which lang, C, Perl, etc ?
PS @abolishtheun: nice answer
but I think he wants bi-directional servers
I could be wrong, its not clear...
 
Old 11-06-2008, 02:07 AM   #7
j-ray
Senior Member
 
Registered: Jan 2002
Location: germany
Distribution: ubuntu, mint, suse
Posts: 1,591

Rep: Reputation: 145Reputation: 145
there is a nice module in perl available on cpan called Net::EasyTCP
 
Old 11-06-2008, 02:09 AM   #8
swift2008
Member
 
Registered: Jul 2008
Posts: 78

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by chrism01 View Post
Which lang, C, Perl, etc ?
PS @abolishtheun: nice answer
but I think he wants bi-directional servers
I could be wrong, its not clear...
i need it in "c"
 
Old 11-06-2008, 02:11 AM   #9
swift2008
Member
 
Registered: Jul 2008
Posts: 78

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by abolishtheun View Post
Here: a server and a client
what it is..
one apache tomcat server... and other is firefox..?
 
Old 11-06-2008, 02:15 AM   #10
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,362

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
This is where you start:
http://beej.us/guide/bgnet/
 
Old 11-26-2008, 12:12 PM   #11
nehaandrew
Member
 
Registered: Nov 2008
Posts: 53

Rep: Reputation: 15
Google for it buddy. You should find plenty of them online.


Linux

Last edited by nehaandrew; 11-30-2008 at 01:21 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
client/server echo program of UDP sockets memisbah Programming 2 04-08-2008 10:27 AM
Client / Server program cannot establish socket connection tliggins Linux - Networking 2 06-19-2006 10:51 AM
chat program in client-server mode iman2380 Programming 4 06-01-2006 06:50 AM
How to get IP address of client from server.c program nazsarwat Programming 1 04-22-2005 03:57 PM
Server Client program using UDP frostmagic Programming 9 11-14-2003 11:06 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 09:25 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration