Helps to htons(3) the port...
Couple socket-related fixes:

 * Don't set non-blocking before connect
 * Make sure we write the full command
 * Use the proper pollfd offset :thumbsdown: