How To Get A Socket Client To Wait For The Server?
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Unix and Linux reviews > Free Unix support > Unix Programming > How To Get A Socket Client To Wait For The Server?




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    How To Get A Socket Client To Wait For The Server?  
Doug Mitton


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
01-23-04 10:01 PM

I have collected some source code from searches of Google and I have
written a very simple socket "echo client".  Now, could someone point
out how I could make the client wait for the server to connect, then
connect to the server and do its echoing?

In this case the server can connect and disconnect at will and I'd
like for my client to hang around and wait for it to come back.

I can post the full source but right now it is the "connect" call
failing if the server is not available.  I'd rather not poll, so I
hope there is some other "standard" available.

The server is the Kegs Apple //gs emulator that starts a server as the
emulated serial port.  I'm trying to create a "client" service for
that server to emulate a modem PLUS.

Oh yes, I'm writing this in C.  Thanks in advance.
--
------------------------------------------------
http://www3.sympatico.ca/dmitton
SPAM Reduction: Remove "x." from my domain.
------------------------------------------------





[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 01:19 PM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register