Skip to content

network: use a function to turn network errors into string

Steve Lhomme requested to merge robUx4/vlc:net_errno-str into master

So whether we decide to turn network errors into errno or keep using net_errno, the code logging network errors won't need to change.

Also report bind() errors early which both simplifies the code and make the log order more logical on Linux.

v2: poll sets errno on all error pathes on Windows, so don't use net_errno to report poll errors.

Edited by Steve Lhomme

Merge request reports