Receive data (up to size bytes) from a socket. If address is non-NULL then address will be set equal to the source address of the received packet. address is owned by the caller. See g_socket_receive() for additional information. Since 2.22
a pointer to a GSocketAddress pointer, or NULL
a buffer to read data into (which should be at least size bytes long).
a GCancellable or NULL. [allow-none]
Number of bytes read, or -1 on error
GException on failure.
See Implementation
Receive data (up to size bytes) from a socket. If address is non-NULL then address will be set equal to the source address of the received packet. address is owned by the caller. See g_socket_receive() for additional information. Since 2.22