server.c (36314) | server.c (37019) |
---|---|
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.c,v 1.18 1998/05/21 21:48:15 brian Exp $ | 26 * $Id: server.c,v 1.19 1998/05/23 22:24:50 brian Exp $ |
27 */ 28 29#include <sys/types.h> 30#include <sys/socket.h> 31#include <netinet/in.h> 32#include <arpa/inet.h> 33#include <netinet/in_systm.h> 34#include <netinet/ip.h> --- 139 unchanged lines hidden (view full) --- 174 if (descriptor_IsSet(&p->desc, fdset)) 175 descriptor_Read(&p->desc, bundle, fdset); 176} 177 178static void 179server_Write(struct descriptor *d, struct bundle *bundle, const fd_set *fdset) 180{ 181 /* We never want to write here ! */ | 27 */ 28 29#include <sys/types.h> 30#include <sys/socket.h> 31#include <netinet/in.h> 32#include <arpa/inet.h> 33#include <netinet/in_systm.h> 34#include <netinet/ip.h> --- 139 unchanged lines hidden (view full) --- 174 if (descriptor_IsSet(&p->desc, fdset)) 175 descriptor_Read(&p->desc, bundle, fdset); 176} 177 178static void 179server_Write(struct descriptor *d, struct bundle *bundle, const fd_set *fdset) 180{ 181 /* We never want to write here ! */ |
182 log_Printf(LogERROR, "server_Write: Internal error: Bad call !\n"); | 182 log_Printf(LogALERT, "server_Write: Internal error: Bad call !\n"); |
183} 184 185struct server server = { 186 { 187 SERVER_DESCRIPTOR, 188 server_UpdateSet, 189 server_IsSet, 190 server_Read, --- 108 unchanged lines hidden --- | 183} 184 185struct server server = { 186 { 187 SERVER_DESCRIPTOR, 188 server_UpdateSet, 189 server_IsSet, 190 server_Read, --- 108 unchanged lines hidden --- |