chiark / gitweb /
elogind-activate: Add support for datagram sockets
authorSusant Sahani <ssahani@gmail.com>
Fri, 22 Jan 2016 04:11:44 +0000 (09:41 +0530)
committerSven Eden <yamakuzure@gmx.net>
Wed, 17 May 2017 13:22:15 +0000 (15:22 +0200)
core: Add flexible way to provide socket type
the socket type should be a diffrent argumet
in make_socket_fd . In this way we can set the socket
type like SOCK_STREAM SOCK_DGRAM in the address.

journal-remote: modify make_socket_fd

src/basic/socket-util.h

index 6cd67ffa081508dd6890c1191c4cae945c513659..6dc06af2cbd9a01ae4e1c82207efc7912aebb508 100644 (file)
@@ -87,7 +87,7 @@ int socket_address_listen(
                 mode_t directory_mode,
                 mode_t socket_mode,
                 const char *label);
-int make_socket_fd(int log_level, const char* address, int flags);
+int make_socket_fd(int log_level, const char* address, int type, int flags);
 
 bool socket_address_is(const SocketAddress *a, const char *s, int type);
 bool socket_address_is_netlink(const SocketAddress *a, const char *s);