socket.h revision 6866780115a7c0af034f287d965f4bf6b02c1e6d
e2417e4143bb892e4599b01de7b031763421bb64Daniel J Walsh/*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
e2417e4143bb892e4599b01de7b031763421bb64Daniel J Walsh This file is part of systemd.
e2417e4143bb892e4599b01de7b031763421bb64Daniel J Walsh Copyright 2010 Lennart Poettering
e2417e4143bb892e4599b01de7b031763421bb64Daniel J Walsh systemd is free software; you can redistribute it and/or modify it
03e22642617f360a6b55cb853bcf59604754ea5dKay Sievers under the terms of the GNU Lesser General Public License as published by
03e22642617f360a6b55cb853bcf59604754ea5dKay Sievers the Free Software Foundation; either version 2.1 of the License, or
e2417e4143bb892e4599b01de7b031763421bb64Daniel J Walsh (at your option) any later version.
e2417e4143bb892e4599b01de7b031763421bb64Daniel J Walsh systemd is distributed in the hope that it will be useful, but
e2417e4143bb892e4599b01de7b031763421bb64Daniel J Walsh WITHOUT ANY WARRANTY; without even the implied warranty of
e2417e4143bb892e4599b01de7b031763421bb64Daniel J Walsh MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
03e22642617f360a6b55cb853bcf59604754ea5dKay Sievers Lesser General Public License for more details.
03e22642617f360a6b55cb853bcf59604754ea5dKay Sievers You should have received a copy of the GNU Lesser General Public License
e2417e4143bb892e4599b01de7b031763421bb64Daniel J Walsh along with systemd; If not, see <http://www.gnu.org/licenses/>.
typedef enum SocketType {
} SocketType;
typedef enum SocketResult {
} SocketResult;
typedef struct SocketPort {
int fd;
char *path;
} SocketPort;
struct Socket {
unsigned n_accepted;
unsigned n_connections;
unsigned max_connections;
unsigned backlog;
bool accept;
bool keep_alive;
bool free_bind;
bool transparent;
bool broadcast;
bool pass_cred;
bool pass_sec;
int priority;
int mark;
int ip_tos;
int ip_ttl;
char *bind_to_device;
char *tcp_congestion;
long mq_maxmsg;
long mq_msgsize;
char *smack;
char *smack_ip_in;
char *smack_ip_out;