The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > High Level Programming
Google UNIX.COM


High Level Programming Post questions about C, C++, Java, SQL, and other programming languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
recv syscall for socket programming heljy High Level Programming 2 06-16-2008 04:24 AM
log send, sendrec, recv and notify system calls pedrosacosta UNIX for Dummies Questions & Answers 0 02-04-2008 01:45 PM
socket programming : client server IPC abc.working UNIX for Dummies Questions & Answers 3 10-17-2007 01:25 AM
send and recv ARP package in AS3.0 lameryang High Level Programming 0 09-21-2005 08:05 PM
client app not letting go of socket fusion99 UNIX for Dummies Questions & Answers 1 02-20-2004 06:13 AM

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 05-08-2007
Registered User
 

Join Date: Jan 2007
Posts: 30
Stumble this Post!
UDP socket - can both client and server recv and send

Hi,

Am very new to socket programming.
When we use UDP sockets to communicate between two processess,
will both the client/server socket be able to send/recv ?
meaning can sendto()/ recvfrom() be used on both server and client?
It could be useful even if anybody provide some link on socket programming in C.

Thanks
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 05-08-2007
Moderator
 

Join Date: Sep 2002
Location: Hong Kong, China
Posts: 1,428
Stumble this Post!
Yes, unless the socket has been closed from duplex operation, such as with shutdown().

For C socket programming resources, this is a popular one:
http://beej.us/guide/bgnet/output/ht...age/index.html
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 11:26 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0