X-Git-Url: http://www.privoxy.org/gitweb/?p=privoxy.git;a=blobdiff_plain;f=jbsockets.h;h=b7480d3993c58d27ff830bb9d93dad3bfcb2c784;hp=3259fa21d5dd5491f1bb3e6b39ba44b67deb206c;hb=6e91015537c9168f5b3c35f667c3983a2ea9e52c;hpb=906311122f1cb915802bda61741695cb05bf8da9 diff --git a/jbsockets.h b/jbsockets.h index 3259fa21..b7480d39 100644 --- a/jbsockets.h +++ b/jbsockets.h @@ -1,6 +1,5 @@ #ifndef JBSOCKETS_H_INCLUDED #define JBSOCKETS_H_INCLUDED -#define JBSOCKETS_H_VERSION "$Id: jbsockets.h,v 1.24 2014/06/02 06:22:20 fabiankeil Exp $" /********************************************************************* * * File : $Source: /cvsroot/ijbswa/current/jbsockets.h,v $ @@ -43,17 +42,13 @@ struct client_state; extern jb_socket connect_to(const char *host, int portnum, struct client_state *csp); -#ifdef AMIGA -extern int write_socket(jb_socket fd, const char *buf, ssize_t n); -#else extern int write_socket(jb_socket fd, const char *buf, size_t n); -#endif extern int read_socket(jb_socket fd, char *buf, int n); extern int data_is_available(jb_socket fd, int seconds_to_wait); extern void close_socket(jb_socket fd); extern void drain_and_close_socket(jb_socket fd); -extern int bind_port(const char *hostnam, int portnum, jb_socket *pfd); +extern int bind_port(const char *hostnam, int portnum, int backlog, jb_socket *pfd); extern int accept_connection(struct client_state * csp, jb_socket fds[]); extern void get_host_information(jb_socket afd, char **ip_address, char **port, char **hostname); @@ -65,10 +60,6 @@ extern int socket_is_still_alive(jb_socket sfd); extern void mark_socket_for_close_on_execute(jb_socket fd); #endif -/* Revision control strings from this header and associated .c file */ -extern const char jbsockets_rcs[]; -extern const char jbsockets_h_rcs[]; - /* * Solaris workaround * XXX: still necessary?