LinuxQuestions.org
Visit Jeremy's Blog.
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-06-2008, 12:57 AM   #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, 01: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, 01: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, 01: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, 02:04 AM   #5
abolishtheun
Member
 
Registered: Mar 2008
Posts: 183

Rep: Reputation: 31
Here: a server and a client
 
Old 11-06-2008, 02:36 AM   #6
chrism01
Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.6, Centos 5.10
Posts: 16,324

Rep: Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041
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, 03:07 AM   #7
j-ray
Senior Member
 
Registered: Jan 2002
Location: germany
Distribution: ubuntu
Posts: 1,457

Rep: Reputation: 104Reputation: 104
there is a nice module in perl available on cpan called Net::EasyTCP
 
Old 11-06-2008, 03: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, 03: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, 03:15 AM   #10
chrism01
Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.6, Centos 5.10
Posts: 16,324

Rep: Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041
This is where you start:
http://beej.us/guide/bgnet/
 
Old 11-26-2008, 01: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 02:21 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 11:27 AM
Client / Server program cannot establish socket connection tliggins Linux - Networking 2 06-19-2006 11:51 AM
chat program in client-server mode iman2380 Programming 4 06-01-2006 07:50 AM
How to get IP address of client from server.c program nazsarwat Programming 1 04-22-2005 04:57 PM
Server Client program using UDP frostmagic Programming 9 11-15-2003 12:06 AM


All times are GMT -5. The time now is 12:24 AM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration