The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Special Forums > IP Networking
Google UNIX.COM


IP Networking Questions involving TCP/IP, Routers, Hubs, Network protocols, etc go here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
How to configure linux to receive snmp traps from a windows server? iamtulipin Linux 2 02-19-2008 07:28 PM
Can we send email with C program on Unix? whatisthis High Level Programming 3 07-07-2006 08:18 AM
send mail in sh program whatisthis UNIX for Dummies Questions & Answers 1 04-13-2006 10:20 AM
how to receive messages in mobile from our server? abhijeetkul Shell Programming and Scripting 2 02-09-2006 12:51 AM
Send email to another server on AIX owls UNIX for Dummies Questions & Answers 1 09-17-2001 09:02 AM

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 10-09-2005
Registered User
 

Join Date: Jul 2005
Posts: 11
Stumble this Post!
Angry Tcp Ip Send Receive Server Program

Requirements:
A server program should read a file and send the message to the client . if the file is not there, then switch to the receive part of the same program and receive any messages from the socket. If no messages to receive then switch to send part of the program to send any messages. This should work continuously.

How to do this? Steps to do it will be enough.
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 10-24-2005
Registered User
 

Join Date: Sep 2005
Posts: 4
Stumble this Post!
u should use the select() if using c (coz i had worked with it) .. non blocking select will ensure continual listening for incoming requests... as and when req come in.. put them in a data structure and then use ur thread to read that file.. just call those functions in the order required by u... i hope this helps u... and do lemme know if i have gone wrong somewhere...(for the others!)
Reply With Quote
  #3 (permalink)  
Old 11-02-2005
Registered User
 

Join Date: Aug 2004
Posts: 5
Stumble this Post!
:)

ues Xscan get the hole or others tool.
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 05:37 PM.


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