opdenkamp/xbmc — comment on commit 5d17c2e9d6db6c85f146efb8fa31f1b910c6c74a
File: lib/platform/sockets/socket.h line 166
By FernetMenta:

EINVAL has a value of 22 which might cause problems when sending data of length 22. Why not returning a negative value here.