mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-06 09:13:55 -06:00
Separate inet_connect into inet_connect (blocking) and inet_nonblocking_connect
No need to add non blocking parameters to the blocking inet_connect add block parameter for inet_connect_opts instead of using QemuOpt "block". Signed-off-by: Orit Wasserman <owasserm@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
parent
05bc1d8a4b
commit
5db5f44cb4
6 changed files with 57 additions and 16 deletions
2
nbd.c
2
nbd.c
|
@ -208,7 +208,7 @@ int tcp_socket_outgoing(const char *address, uint16_t port)
|
|||
|
||||
int tcp_socket_outgoing_spec(const char *address_and_port)
|
||||
{
|
||||
return inet_connect(address_and_port, true, NULL, NULL);
|
||||
return inet_connect(address_and_port, NULL);
|
||||
}
|
||||
|
||||
int tcp_socket_incoming(const char *address, uint16_t port)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue