mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-01 23:03:54 -06:00
sockets: add inet_connect_opts
Add inet_connect_opts(). Does the same as inet_connect(), but uses QemuOpts. inet_connect() is a compatibility wrapper for inet_connect_opts() now and should go away some day. Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
parent
108af7b957
commit
f4c94c7c51
2 changed files with 97 additions and 33 deletions
|
@ -38,6 +38,7 @@ int send_all(int fd, const void *buf, int len1);
|
|||
/* New, ipv6-ready socket helper functions, see qemu-sockets.c */
|
||||
int inet_listen(const char *str, char *ostr, int olen,
|
||||
int socktype, int port_offset);
|
||||
int inet_connect_opts(QemuOpts *opts);
|
||||
int inet_connect(const char *str, int socktype);
|
||||
|
||||
int unix_listen_opts(QemuOpts *opts);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue