fix spots pointed out from author.

 * use `struct sockaddr_storage` instead of `struct sockaddr_un`
 * use `port` and `type` instead of `unix:`
 * use `switch` statement