cristconst
Tue, 10 Mar 2026 23:45:30 +0000
Questions / Help

Hi!

When does `inet:peername/1` return the `posix()` `einval`?

I assume that the underlaying syscall on linux is `getpeername()`, right?

From a more generic perspective, why isn’t it documented which are the `posix()` errors that can be actually returned by functions like `inet:peername/1`?

erlang.org

peernames/1,2 - inet — kernel v10.6

Cancel a socket monitor.

Thanks,

Cristian

2 posts - 2 participants