Use read() instead of recv() such that non-sockets can be used for reads.
This commit is contained in:
parent
3cca318f8e
commit
5bd42295ca
@ -373,11 +373,10 @@ int __guac_fill_instructionbuf(guac_socket* socket) {
|
|||||||
int retval;
|
int retval;
|
||||||
|
|
||||||
/* Attempt to fill buffer */
|
/* Attempt to fill buffer */
|
||||||
retval = recv(
|
retval = read(
|
||||||
socket->fd,
|
socket->fd,
|
||||||
socket->__instructionbuf + socket->__instructionbuf_used_length,
|
socket->__instructionbuf + socket->__instructionbuf_used_length,
|
||||||
socket->__instructionbuf_size - socket->__instructionbuf_used_length,
|
socket->__instructionbuf_size - socket->__instructionbuf_used_length
|
||||||
0
|
|
||||||
);
|
);
|
||||||
|
|
||||||
/* Set guac_error if recv() unsuccessful */
|
/* Set guac_error if recv() unsuccessful */
|
||||||
|
Loading…
Reference in New Issue
Block a user