Save the master node's IP address in the struct sockaddr pointed to by addr. size should be initialized to indicate the amount of space pointed to by addr. On return it contains the actual size of the addr returned (in bytes).
addr or size points to memory that is not accessible by the program.
There was an I/O error.
Out of memory error.