connect() succeeds but accept() does not?


Posted on 16th Feb 2014 07:03 pm by admin

Please help me with this problem. I'm working on a time-sensitive project where I'm using TCP sockets. I've got this problem where most of the time a connection cannot be made.

While debugging, I see that the connect() call on the client succeeds but on the host machine it will just be stuck on accept (or just bypass it with EWOULDBLOCK if it was set to a non-blocking socket)

Did you know?Explore Trending and Topic pages for more stories like this.
I'm not very experienced with socket programming, so I'm not sure what can cause this behavior. Also what makes it difficult to solve is that sometimes it works perfectly fine.

What are some possible reasons for this problem to occur?
No comments posted yet

Your Answer:

Login to answer
187 Like 30 Dislike
Previous forums Next forums
Other forums

Need help: how to catch acess of undefined class properties
Hello. I am learning OO with PHP and have hit a problem.
Some code runs as perfectly valid code,

printing links
Hi every1

i am connecting to a table in sql and the looping through with a while ($ var = my

PHP Form to Variable.
Hi! I have written a HTML-form code in DreamWeaver CS3 (in a PHP doc) and I really need it to work s

To add a field on the screen XK02.
Hi All,

How to add an additional field in the vendor change control screen XK02.
The

mr8m - reverse document
Friends,

I'm trying to reverse a document held by MIRO, but it reports the message balan

asp authentication problem
Hello all, I want to use the asp authentication (from asp.net configuration) in my web site. there

Time script, set to my time zone?
I am using this line to get the date and time

Code: $time = date(F." ".d.", &q

EU VAT Package 2010
Does any one know whether SAP will be developing new reporting functionality due the new VAT rules t

how to use two buttons with php
hi i have one form. there are three fields which are to be filled by the user. and then there are tw

Table colours fail when extra row added
Hey Gurus,

I got a weird problem with formating the colour of a table made in php. Everything

Sign up to write
Sign up now if you have flare of writing..
Login   |   Register
Follow Us
Indyaspeak @ Facebook Indyaspeak @ Twitter Indyaspeak @ Pinterest RSS



Play Free Quiz and Win Cash