Save the node's IP address in the struct sockaddr pointed to by addr. The size element 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 accesible by the program.
There was an I/O error.
Out of memory error.