mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 15:23:53 -06:00
sockets: add unix_connect_opts
Add unix_connect_opts(). Does the same as unix_connect(), but uses QemuOpts. unix_connect() is a compatibility wrapper for unix_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
7d31544ff6
commit
2af2bf6760
2 changed files with 36 additions and 1 deletions
|
@ -29,6 +29,8 @@ int inet_aton(const char *cp, struct in_addr *ia);
|
|||
|
||||
#endif /* !_WIN32 */
|
||||
|
||||
#include "qemu-option.h"
|
||||
|
||||
/* misc helpers */
|
||||
void socket_set_nonblock(int fd);
|
||||
int send_all(int fd, const void *buf, int len1);
|
||||
|
@ -39,6 +41,7 @@ int inet_listen(const char *str, char *ostr, int olen,
|
|||
int inet_connect(const char *str, int socktype);
|
||||
|
||||
int unix_listen(const char *path, char *ostr, int olen);
|
||||
int unix_connect_opts(QemuOpts *opts);
|
||||
int unix_connect(const char *path);
|
||||
|
||||
/* Old, ipv4 only bits. Don't use for new code. */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue