init sockaddr_in to zero
basic socket read and write