socket.h revision 8b835fccdad78d89f9cc64f9b02059fb75ffbab1
d025f1e4dca8fc1436aff76f9e6185fe3e728daaZbigniew Jędrzejewski-Szmek/*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
d025f1e4dca8fc1436aff76f9e6185fe3e728daaZbigniew Jędrzejewski-Szmek This file is part of systemd.
d025f1e4dca8fc1436aff76f9e6185fe3e728daaZbigniew Jędrzejewski-Szmek Copyright 2010 Lennart Poettering
d025f1e4dca8fc1436aff76f9e6185fe3e728daaZbigniew Jędrzejewski-Szmek systemd is free software; you can redistribute it and/or modify it
d025f1e4dca8fc1436aff76f9e6185fe3e728daaZbigniew Jędrzejewski-Szmek under the terms of the GNU Lesser General Public License as published by
d025f1e4dca8fc1436aff76f9e6185fe3e728daaZbigniew Jędrzejewski-Szmek the Free Software Foundation; either version 2.1 of the License, or
d025f1e4dca8fc1436aff76f9e6185fe3e728daaZbigniew Jędrzejewski-Szmek (at your option) any later version.
d025f1e4dca8fc1436aff76f9e6185fe3e728daaZbigniew Jędrzejewski-Szmek systemd is distributed in the hope that it will be useful, but
d025f1e4dca8fc1436aff76f9e6185fe3e728daaZbigniew Jędrzejewski-Szmek WITHOUT ANY WARRANTY; without even the implied warranty of
d025f1e4dca8fc1436aff76f9e6185fe3e728daaZbigniew Jędrzejewski-Szmek MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
d025f1e4dca8fc1436aff76f9e6185fe3e728daaZbigniew Jędrzejewski-Szmek Lesser General Public License for more details.
d025f1e4dca8fc1436aff76f9e6185fe3e728daaZbigniew Jędrzejewski-Szmek You should have received a copy of the GNU Lesser General Public License
d025f1e4dca8fc1436aff76f9e6185fe3e728daaZbigniew Jędrzejewski-Szmek along with systemd; If not, see <http://www.gnu.org/licenses/>.
d025f1e4dca8fc1436aff76f9e6185fe3e728daaZbigniew Jędrzejewski-Szmek SOCKET_FAILURE_SERVICE_FAILED_PERMANENT,
d025f1e4dca8fc1436aff76f9e6185fe3e728daaZbigniew Jędrzejewski-Szmek ExecCommand* exec_command[_SOCKET_EXEC_COMMAND_MAX];
8580d1f73db36e9383e674e388b4fb55828c0c66Lennart Poettering /* For Accept=no sockets refers to the one service we'll
d025f1e4dca8fc1436aff76f9e6185fe3e728daaZbigniew Jędrzejewski-Szmek activate. For Accept=yes sockets is either NULL, or filled
8580d1f73db36e9383e674e388b4fb55828c0c66Lennart Poettering when the next service we spawn. */
d025f1e4dca8fc1436aff76f9e6185fe3e728daaZbigniew Jędrzejewski-Szmek /* Socket options */
d025f1e4dca8fc1436aff76f9e6185fe3e728daaZbigniew Jędrzejewski-Szmek /* Only for INET6 sockets: issue IPV6_V6ONLY sockopt */
d025f1e4dca8fc1436aff76f9e6185fe3e728daaZbigniew Jędrzejewski-Szmek SocketAddressBindIPv6Only bind_ipv6_only;
d025f1e4dca8fc1436aff76f9e6185fe3e728daaZbigniew Jędrzejewski-Szmek/* Called from the service code when collecting fds */
670b110c3b59dfa335ac43065b2038400d1d04a9Zbigniew Jędrzejewski-Szmekint socket_collect_fds(Socket *s, int **fds, unsigned *n_fds);
8580d1f73db36e9383e674e388b4fb55828c0c66Lennart Poettering/* Called from the service code when a per-connection service ended */
282c5c4e422cb6e6685c870946d8b9bdf0879ad1Zbigniew Jędrzejewski-Szmekvoid socket_connection_unref(Socket *s);
282c5c4e422cb6e6685c870946d8b9bdf0879ad1Zbigniew Jędrzejewski-Szmekvoid socket_free_ports(Socket *s);
282c5c4e422cb6e6685c870946d8b9bdf0879ad1Zbigniew Jędrzejewski-Szmekextern const UnitVTable socket_vtable;
670b110c3b59dfa335ac43065b2038400d1d04a9Zbigniew Jędrzejewski-Szmekconst char* socket_state_to_string(SocketState i) _const_;
670b110c3b59dfa335ac43065b2038400d1d04a9Zbigniew Jędrzejewski-SzmekSocketState socket_state_from_string(const char *s) _pure_;
282c5c4e422cb6e6685c870946d8b9bdf0879ad1Zbigniew Jędrzejewski-Szmekconst char* socket_exec_command_to_string(SocketExecCommand i) _const_;
282c5c4e422cb6e6685c870946d8b9bdf0879ad1Zbigniew Jędrzejewski-SzmekSocketExecCommand socket_exec_command_from_string(const char *s) _pure_;
282c5c4e422cb6e6685c870946d8b9bdf0879ad1Zbigniew Jędrzejewski-Szmekconst char* socket_result_to_string(SocketResult i) _const_;
282c5c4e422cb6e6685c870946d8b9bdf0879ad1Zbigniew Jędrzejewski-SzmekSocketResult socket_result_from_string(const char *s) _pure_;
282c5c4e422cb6e6685c870946d8b9bdf0879ad1Zbigniew Jędrzejewski-Szmekconst char* socket_port_type_to_string(SocketPort *p) _pure_;