From 915005e218b5d00939b548de65ce6354f7acb487 Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Fri, 28 Jul 2023 21:18:56 -0700 Subject: Completely redesigned Server and Client. Like, seriously, they're almost completely different. --- src/stable/multiserver.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/stable/multiserver.h') diff --git a/src/stable/multiserver.h b/src/stable/multiserver.h index b12aa90..2490427 100644 --- a/src/stable/multiserver.h +++ b/src/stable/multiserver.h @@ -15,6 +15,7 @@ namespace Bu { class Protocol; class Client; + class ServerSocket; template Protocol *genProtocol() @@ -28,9 +29,7 @@ namespace Bu MultiServer(); virtual ~MultiServer(); - void addProtocol( Protocol *(*proc)(), int iPort, int nPoolSize=40 ); - void addProtocol( Protocol *(*proc)(), const String &sAddr, int iPort, - int nPoolSize=40 ); + void addProtocol( Protocol *(*proc)(), ServerSocket *pServer ); void scan() { @@ -42,7 +41,8 @@ namespace Bu Server::setTimeout( nTimeoutSec, nTimeoutUSec ); } - virtual void onNewConnection( Client *pClient, int nPort ); + virtual void onNewConnection( const Bu::ServerSocket *pSrv, + Client *pClient, Bu::Socket *pSocket ); virtual void onClosedConnection( Client *pClient ); void shutdown(); -- cgit v1.2.3