server.h (2764b86afdc99a30f4b1a4da2c04db8aa7aa785d) | server.h (565e35e50e2cdac423588a3d18742544bde128b0) |
---|---|
1/*- 2 * Copyright (c) 1997 Brian Somers <brian@Awfulhak.org> 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 9 unchanged lines hidden (view full) --- 18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24 * SUCH DAMAGE. 25 * | 1/*- 2 * Copyright (c) 1997 Brian Somers <brian@Awfulhak.org> 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 9 unchanged lines hidden (view full) --- 18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24 * SUCH DAMAGE. 25 * |
26 * $Id: server.h,v 1.4.2.2 1998/04/03 19:25:55 brian Exp $ | 26 * $Id: server.h,v 1.4.2.3 1998/04/07 00:54:18 brian Exp $ |
27 */ 28 29struct bundle; 30 31struct server { 32 struct descriptor desc; 33 int fd; 34 char passwd[50]; | 27 */ 28 29struct bundle; 30 31struct server { 32 struct descriptor desc; 33 int fd; 34 char passwd[50]; |
35 36 struct sockaddr_un ifsun; /* local socket */ 37 char *rm; /* Points to local socket path */ 38 39 u_short port; /* tcp socket */ |
|
35}; 36 37#define server2descriptor(s) (&(s)->desc) 38#define descriptor2server(d) \ 39 ((d)->type == SERVER_DESCRIPTOR ? (struct server *)(d) : NULL) 40 41extern struct server server; 42 43extern int ServerLocalOpen(struct bundle *, const char *, mode_t); 44extern int ServerTcpOpen(struct bundle *, int); 45extern int ServerClose(struct bundle *); | 40}; 41 42#define server2descriptor(s) (&(s)->desc) 43#define descriptor2server(d) \ 44 ((d)->type == SERVER_DESCRIPTOR ? (struct server *)(d) : NULL) 45 46extern struct server server; 47 48extern int ServerLocalOpen(struct bundle *, const char *, mode_t); 49extern int ServerTcpOpen(struct bundle *, int); 50extern int ServerClose(struct bundle *); |