I recently ran into this blog post which describes a TCP server client using libev. The sever uses INADDR_ANY to bind to an interface which is something I\'m fa
INADDR_ANY
It seems like your question is not really about "client-side", but about bind vs connect.
bind
connect
INADDR_ANY can be sensibly used with bind on both client and server. Using it with connect() is pointless and should cause a connection failure.
connect()