![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| IP Networking Learn TCP/IP, Internet Protocol, Routing, Routers, Network protocols in this UNIX and Linux forum. |
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 11:28 PM |
| Can we send email with C program on Unix? | whatisthis | High Level Programming | 3 | 07-07-2006 11:18 AM |
| send mail in sh program | whatisthis | UNIX for Dummies Questions & Answers | 1 | 04-13-2006 01:20 PM |
| how to receive messages in mobile from our server? | abhijeetkul | Shell Programming and Scripting | 2 | 02-09-2006 04:51 AM |
| Send email to another server on AIX | owls | UNIX for Dummies Questions & Answers | 1 | 09-17-2001 12:02 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
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. |
|
||||
|
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!)
|
|
||||
|
:)
ues Xscan get the hole or others tool.
|
| Sponsored Links | ||
|
|