From 798601d8ff09d4f80a2fd42119112846ea8f050e Mon Sep 17 00:00:00 2001 From: Nikias Bassen Date: Mon, 18 May 2020 02:57:32 +0200 Subject: common: Update socket.c/.h from libusbmuxd --- common/socket.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'common/socket.h') diff --git a/common/socket.h b/common/socket.h index e31de6b..38eeddf 100644 --- a/common/socket.h +++ b/common/socket.h @@ -1,8 +1,8 @@ /* * socket.h * + * Copyright (C) 2012-2020 Nikias Bassen * Copyright (C) 2012 Martin Szulecki - * Copyright (C) 2012 Nikias Bassen * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public @@ -46,6 +46,7 @@ int socket_create_unix(const char *filename); int socket_connect_unix(const char *filename); #endif int socket_create(uint16_t port); +int socket_connect_addr(struct sockaddr *addr, uint16_t port); int socket_connect(const char *addr, uint16_t port); int socket_check_fd(int fd, fd_mode fdm, unsigned int timeout); int socket_accept(int fd, uint16_t port); @@ -62,4 +63,6 @@ int socket_send(int fd, void *data, size_t size); void socket_set_verbose(int level); +const char *socket_addr_to_string(struct sockaddr *addr, char *addr_out, size_t addr_out_size); + #endif /* SOCKET_SOCKET_H */ -- cgit v1.1-32-gdbae