From 2eb708e5ad8b259876d24d828f7472b77864c256 Mon Sep 17 00:00:00 2001 From: Adam Date: Sun, 21 Aug 2011 13:38:42 -0400 Subject: Cleaned up some of the socket code, cleaned up the pipe engines, added support for binary sockets, and cleaned up the asynch connect/accept code --- include/extern.h | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'include/extern.h') diff --git a/include/extern.h b/include/extern.h index 0b90c6e14..1772c965c 100644 --- a/include/extern.h +++ b/include/extern.h @@ -106,7 +106,16 @@ E bool restarting; E Anope::string quitmsg; E time_t start_time; -E ConnectionSocket *UplinkSock; +class UplinkSocket : public ConnectionSocket, public BufferedSocket +{ + public: + UplinkSocket(); + ~UplinkSocket(); + bool Read(const Anope::string &); + void OnConnect(); + void OnError(const Anope::string &); +}; +E UplinkSocket *UplinkSock; E int CurrentUplink; E void save_databases(); -- cgit