Click here to Skip to main content
15,668,691 members
Please Sign up or sign in to vote.
1.00/5 (6 votes)
See more:
I am using plain "socket" to initialize bluetooth connection - from client to server.
This is not a problem, just need some better description of receiving messages.
If you are accustomed to answering questions , please , do not read any further.
This is NOT simple question post.

I am getting two distinct results - either "Connection refused" or
"Connection timed out".
My guess both are a result of some undocumented interaction between client and server which presumably are yet not connected, hence just "guessing " the state.
It also appears that BOTH have a timer / timeout.

There are "guesses" on net describing "Connection refused" , so far no definition / description of "Connection timed out" was found.

In short - I am looking for somewhat official description of BOTH of these messages.

What I have tried:

Asked Mrs Google for description of "Connection refused".
Updated 20-Jan-20 8:19am

1 solution

This is NOT simple question post.
Yes it is.

Connection refused: the target system did not accept a connection request. The actual reason can only be found by inspecting the system which refused the connection. Maybe the two partners were not paired correctly, part of the address was incorrect etc.

Connection timed out: the target system just did not respond. Most likely because the connection request was not addressed to the correct place.

I am looking for somewhat official description of BOTH of these messages.
If you want the official answer then please refer to the relevant RFCs.
Share this answer

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900