Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > C Programming > non-blocking connect in C?

Reply
Thread Tools

non-blocking connect in C?

 
 
Trishia Rose
Guest
Posts: n/a
 
      07-11-2003
Hi,

I understand how to operate non-blocking send and recv in C, so
as to exchange data with multiple connections without blocking with
every function call. My question is, how to set up a non-blocking
call to the connect function, so that it will just run the call and
immediately go on with whatever line is next in the code (even though
it might not have had time to finish establishing a connection), and
then the socket can somehow (how?) be checked later to see when/if the
connection finishes being established. This would probably involve
polling with the select function, I assume? Thanks very much in
advance! (I use GCC on a win XP machine) And P.S., this is not homework
 
Reply With Quote
 
 
 
 
Mark McIntyre
Guest
Posts: n/a
 
      07-11-2003
On 11 Jul 2003 00:56:56 -0700, in comp.lang.c ,
(Trishia Rose) wrote:

>Hi,
>
> I understand how to operate non-blocking send and recv in C, so
>as to exchange data with multiple connections without blocking with
>every function call. My question is, how to set up a non-blocking
>call to the connect function,


unfortunately connect(), recv() and send() are not part of C.

You need to ask this question in a unix programming group, since
networking is typically topical there (don't worry that you're using
XP, the TCP/IP networking is essentially common).


--
Mark McIntyre
CLC FAQ <http://www.eskimo.com/~scs/C-faq/top.html>
CLC readme: <http://www.angelfire.com/ms3/bchambless0/welcome_to_clc.html>


----== Posted via Newsfeed.Com - Unlimited-Uncensored-Secure Usenet News==----
http://www.newsfeed.com The #1 Newsgroup Service in the World! >100,000 Newsgroups
---= 19 East/West-Coast Specialized Servers - Total Privacy via Encryption =---
 
Reply With Quote
 
 
 
 
Jason
Guest
Posts: n/a
 
      07-11-2003
Look up fcntl and SO_NONBLOCK in your manual.


 
Reply With Quote
 
dbtid
Guest
Posts: n/a
 
      07-11-2003
Jason wrote:
> Look up fcntl and SO_NONBLOCK in your manual.
>
>


Actually, ITYM O_NONBLOCK.

 
Reply With Quote
 
 
 
Reply

Thread Tools

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 Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Can connect to wireless but can not connect to internet Lucy Wireless Networking 2 09-23-2006 11:47 AM
Can connect to wireless but can not connect to internet Lucy Wireless Networking 0 09-22-2006 11:52 AM
Can connect to wireless but can not connect to internet Lucy Wireless Networking 0 09-22-2006 11:03 AM
Could Not Connect To SMTP Host Connection Failed -- Software caused connection abort: connect kishore@novelteam.com Java 3 11-16-2005 03:33 PM
Can't connect to local machine with anything except IE Other browsers can't connect without password Otis Mukinfus ASP .Net 3 07-08-2005 03:54 AM



Advertisments