logoalt Hacker News

lapcattoday at 3:24 PM2 repliesview on HN

> I am looking forward to learning how it does work...

It's basic sockets. If you call connect() when the internet is disabled, the errno is ENETUNREACH.

The higher-level API are built on sockets. If any apps are misbehaving, they're simply badly coded.


Replies

ChrisMarshallNYtoday at 4:07 PM

> It's basic sockets.

Yup. I've done a bit of that stuff, in my time.

> If any apps are misbehaving, they're simply badly coded.

Plenty of that stuff, going around.

Might want to ease back on the "instant insult" thing. Not a good look.

show 1 reply
direwolf20today at 4:23 PM

I don't think you can get ENETUNREACH from recv though. If the request was sent, it'll time out.

show 1 reply