Files
bitchx/include/newio.h
Kevin Easton d1e13bc526 Show correct message ("Remote end closed connection") when we get EOF
on a socket.

I also added a wrapper function around strerror() for dgets_errno, since
we did the same thing in a few places.  This all needs to be cleaned up
a little - the -1 value we use could in theory clash with an actual
errno error number.


git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@104 13b04d17-f746-0410-82c6-800466cd88b0
2010-09-30 13:26:06 +00:00

28 lines
585 B
C

/*
* newio.h -- header file for newio.c
*
* Copyright 1990, 1995 Michael Sandrof, Matthew Green
* Copyright 1997 EPIC Software Labs
*/
#ifndef __newio_h__
#define __newio_h__
#include "ssl.h"
extern int dgets_errno;
const char *dgets_strerror(int);
int BX_dgets (char *, int, int, int, void *);
int new_select (fd_set *, fd_set *, struct timeval *);
int BX_new_open (int);
int BX_new_close (int);
int new_close_write (int);
int new_open_write (int);
void set_socket_options (int);
size_t get_pending_bytes (int);
#define IO_BUFFER_SIZE 8192
#endif