Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

good resource for socket errors?

Tags:

c++

c

sockets

Where can I find a list of all types of bsd style socket errors?

like image 646
Net Citizen Avatar asked Aug 15 '26 09:08

Net Citizen


2 Answers

In the documentation? For instance, for connect(), see:

% man connect
...
  ECONNREFUSED
          No-one listening on the remote address.
  EISCONN
          The socket is already connected.

  ENETUNREACH
          Network is unreachable.
like image 199
bortzmeyer Avatar answered Aug 16 '26 22:08

bortzmeyer


You can also find a list of error codes (and a general description of their meaning) on the Open Group's pages for each function (like connect, for example).

like image 21
Head Geek Avatar answered Aug 17 '26 00:08

Head Geek



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!