aboutsummaryrefslogtreecommitdiff
path: root/src/stable/multiserver.h
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2023-07-28 21:18:56 -0700
committerMike Buland <eichlan@xagasoft.com>2023-07-28 21:18:56 -0700
commit915005e218b5d00939b548de65ce6354f7acb487 (patch)
tree2f624a37f86f97cfd61c1995df7e4368b462bcac /src/stable/multiserver.h
parente43a2cac32cb773994b11a3d964ec4acc372d273 (diff)
downloadlibbu++-915005e218b5d00939b548de65ce6354f7acb487.tar.gz
libbu++-915005e218b5d00939b548de65ce6354f7acb487.tar.bz2
libbu++-915005e218b5d00939b548de65ce6354f7acb487.tar.xz
libbu++-915005e218b5d00939b548de65ce6354f7acb487.zip
Completely redesigned Server and Client.
Like, seriously, they're almost completely different.
Diffstat (limited to '')
-rw-r--r--src/stable/multiserver.h8
1 files changed, 4 insertions, 4 deletions
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
15{ 15{
16 class Protocol; 16 class Protocol;
17 class Client; 17 class Client;
18 class ServerSocket;
18 19
19 template<class T> 20 template<class T>
20 Protocol *genProtocol() 21 Protocol *genProtocol()
@@ -28,9 +29,7 @@ namespace Bu
28 MultiServer(); 29 MultiServer();
29 virtual ~MultiServer(); 30 virtual ~MultiServer();
30 31
31 void addProtocol( Protocol *(*proc)(), int iPort, int nPoolSize=40 ); 32 void addProtocol( Protocol *(*proc)(), ServerSocket *pServer );
32 void addProtocol( Protocol *(*proc)(), const String &sAddr, int iPort,
33 int nPoolSize=40 );
34 33
35 void scan() 34 void scan()
36 { 35 {
@@ -42,7 +41,8 @@ namespace Bu
42 Server::setTimeout( nTimeoutSec, nTimeoutUSec ); 41 Server::setTimeout( nTimeoutSec, nTimeoutUSec );
43 } 42 }
44 43
45 virtual void onNewConnection( Client *pClient, int nPort ); 44 virtual void onNewConnection( const Bu::ServerSocket *pSrv,
45 Client *pClient, Bu::Socket *pSocket );
46 virtual void onClosedConnection( Client *pClient ); 46 virtual void onClosedConnection( Client *pClient );
47 47
48 void shutdown(); 48 void shutdown();