|
|
blocking connect()
Hi,
In socket programming, how can i make connect() to block till the server
is is ready to accept()
Regards,
Tejas
|
|
0
|
|
|
|
Reply
|
Tejas
|
3/6/2004 4:54:57 AM |
|
In article <pan.2004.03.06.04.54.56.946768@usc.edu>,
Tejas Kokje <kokje@usc.edu> wrote:
> Hi,
>
> In socket programming, how can i make connect() to block till the server
> is is ready to accept()
You can't. If the server responds with an RST, indicating that no
process is listening on the port, this is considered an error and
connect() returns ECONNREFUSED immediately.
You can loop, waiting a few seconds and calling connect() until
successful.
--
Barry Margolin, barmar@alum.mit.edu
Arlington, MA
*** PLEASE post questions in newsgroups, not directly to me ***
|
|
0
|
|
|
|
Reply
|
Barry
|
3/6/2004 5:41:47 AM
|
|
|
1 Replies
140 Views
(page loaded in 0.18 seconds)
Similiar Articles: MDF cross connection block test clips - comp.dcom.cabling ...If you're talking a 110 style cross connect block, the most you're going to get is 25 pair. If so, Siemon used to have a 25pair 110 to go with their 66, but it's gone. %SPANTREE-7-BLOCK_PORT_TYPE: - comp.dcom.sys.ciscoWe have a core 4506 switch with 2 WS-X4306-GB and a supervisor II+. All distribution switches connect via fiber to the GBIC slots. On one GBIC slot, ... TCP connect timeout setting in Solaris - comp.sys.sun.admin ...However, I see the TCP connect block for 1min. 45 sec. Before the change, the tcp_ip_abort_interval was set to 3min. Any idea what this extra 45 second time is? Windows server, Unix client, connection refused on client connect ...//***** client(UNIX) ***** // connect with timeout: // 1. set socket NONBLOCKING // 2. connect with timeout using select // 3. set socket to BLOCKING againg int my ... Block tcp/25 Services (telnet host 25) - comp.unix.solaris ...Hi Dudes How can we block the tcp/25 Services with tcp wrapper under Solaris10? The entry in /etc/hosts.deny "smtp: ALL" dosn't work... We can still connect with ... Could not connect via A-Record (code 11001) - comp.mail.misc ...Aborting connection Tue Feb 10 17:01:10 2004 Connection via DNS unsuccessful Tue Feb ... Even though you appear to have a static block of swbell IPs, some misguided lists ... How do i connect elements of simscape with simpowersystems - comp ...... have tried with PS-S and S-PS converter blocks eventhough i could not connect it ... problem while connecting a simscape model (comparator) with sim power systems block ... Connecting Agilent PSA & PSG to MatLab - comp.soft-sys.matlab ...I've got VISA installed & the Agilent I/O suite, however when I try to connect the ... of your LAN 2) There are no firewalls on the instrument or your PC that is blocking ... bind() and connect() issues [Newbie] - comp.unix.solaris ...Hi, I have a client which executes a bind() call before a connect() call. ... going to happen at B - What is the default behaviour in this case? Will it block? how to check output of PSNR block in simulink - comp.soft-sys ...Hi, I'm doing Am Modulation in Simulink ... way to use the "to workspace block" ? But I see how to connect it to the vectorscope, since the vector scope has no output. Ways to Block a Wi-Fi Connection | eHow.comWireless networking allows the convenience of accessing the Internet (and your home or office network) without a physical connection to the network. For example, you ... Non-blocking connect()? - C BoardNon-blocking connect()? This is a discussion on Non-blocking connect()? within the Networking/Device Communication forums, part of the General Programming Boards ... 7/22/2012 7:19:14 PM
|
|
|
|
|
|
|
|
|