mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-23 01:58:00 +02:00
split client and server interface
This commit is contained in:
@ -9,7 +9,7 @@
|
||||
#include "receiver_defs.h"
|
||||
|
||||
class MySocketTCP;
|
||||
class ClientInterface;
|
||||
class ServerInterface;
|
||||
class slsReceiverImplementation;
|
||||
|
||||
|
||||
@ -363,5 +363,5 @@ protected:
|
||||
MySocketTCP* mySock;
|
||||
|
||||
/** client interface */
|
||||
ClientInterface* interface;
|
||||
ServerInterface* interface;
|
||||
};
|
||||
|
@ -6,7 +6,7 @@
|
||||
#include "slsReceiverTCPIPInterface.h"
|
||||
#include "slsReceiverImplementation.h"
|
||||
#include "MySocketTCP.h"
|
||||
#include "ClientInterface.h"
|
||||
#include "ServerInterface.h"
|
||||
#include "gitInfoReceiver.h"
|
||||
#include "slsReceiverUsers.h"
|
||||
#include "slsReceiver.h"
|
||||
@ -60,7 +60,7 @@ slsReceiverTCPIPInterface::slsReceiverTCPIPInterface(int pn):
|
||||
portNumber = (pn > 0 ? pn : DEFAULT_PORTNO + 2);
|
||||
MySocketTCP* m = new MySocketTCP(portNumber);
|
||||
mySock = m;
|
||||
interface = new ClientInterface(mySock, -1, "Receiver");
|
||||
interface = new ServerInterface(mySock, -1, "Receiver");
|
||||
|
||||
//initialize variables
|
||||
strcpy(mySock->lastClientIP,"none");
|
||||
|
Reference in New Issue
Block a user