use socklen_t instead of int, fix compiler warning