The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com



UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
May I know your chat ID. gauravsunil Forum Support Area for Unregistered Users & Account Problems 0 05-22-2008 06:47 AM
a simple chat program kelogs1347 High Level Programming 1 12-07-2006 07:59 AM
Chat client-server program powermind High Level Programming 1 09-04-2006 11:19 AM
Chat Program krishnavel UNIX for Dummies Questions & Answers 4 07-27-2006 04:59 AM
Implementation of chat program hufs375 IP Networking 2 06-24-2002 11:25 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 12-05-2000
Mrchat Mrchat is offline
Registered User
  
 

Join Date: Dec 2000
Location: england
Posts: 3
Question

Hi to all
small question for someone extremely new to the subject. Could anyone point me in the direction of the source code for a client server, message passing program?

Thanx for all your help
  #2 (permalink)  
Old 12-05-2000
me2unix me2unix is offline
Registered User
  
 

Join Date: Nov 2000
Posts: 36
which inter process comunication would you like to use ?

I guess you talk about sockets based Client/Server code ?

There are many examples available..

here's one I just found while searching for "client.c socktes example" :

http://www.cs.rpi.edu/~moorthy/Cours...ms/socket.html

checked it out and the source code looks good (for Unix!).

hezki
  #3 (permalink)  
Old 12-05-2000
Mrchat Mrchat is offline
Registered User
  
 

Join Date: Dec 2000
Location: england
Posts: 3
cheers hezki
looks fine. Need to go and run it under unix, as im using NT at the moment.
thanx
  #4 (permalink)  
Old 12-06-2000
Mrchat Mrchat is offline
Registered User
  
 

Join Date: Dec 2000
Location: england
Posts: 3
Question

hi
just realised that its TCP, i need it in UDP. all offers very greatful
thanx
  #5 (permalink)  
Old 12-06-2000
Neo's Avatar
Neo Neo is online now Forum Staff  
Administrator
  
 

Join Date: Sep 2000
Location: Asia Pacific
Posts: 6,670
Suggest changing the TCP socket calls to UDP, for starters.
  #6 (permalink)  
Old 12-07-2000
me2unix me2unix is offline
Registered User
  
 

Join Date: Nov 2000
Posts: 36
UDP client/server example

Found one on this URL:
http://www.research.att.com/lists/uw.../msg00067.html

there are many examples like this , just do a simple search...

the main difference is using SOCK_DGRAM instead of SOCK_STREAM on the socket definition.. and of course you should be aware it's connectionless oriented protocol..
useful for broadcasts for example or reliable lines.

Hezki
  #7 (permalink)  
Old 12-07-2000
Neo's Avatar
Neo Neo is online now Forum Staff  
Administrator
  
 

Join Date: Sep 2000
Location: Asia Pacific
Posts: 6,670
TCP vs UDP

UDP can also be used in noisy environments; however the transmission control protocol that manages packet loss, sequencing, etc. must be higher in the protocol stack.

TCP does the 'transmission reliability' transparent to the application programmer. However, this does not preclude the use of higher level 'transmission reliability' on top of UDP systems.

In fact, I have worked with many companies who had issues with the overhead associated with TCP and rebuilt the transmission control model on top of UDP or RAW SOCKETS.

TCP is designed for a generic Internet end-to-end model; however it is not perfect or the most efficient for all transmission models. It is inaccurate to translate 'connectionless' UDP vs. 'connection oriented' TCP to 'unrealiable' and 'reliable'. TCP is connection oriented. UDP is not connection oriented. UDP can be used in applications where connection oriented behavior is required, it just must be done in a higher level in the stack.

We would have to start a new forum 'Advanced UNIX' or 'Advanced Networking' to further discuss, as this is not a newbies topic.
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 04:22 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0