argv, argc moved from tcpip interface to slsReceiver

This commit is contained in:
2014-07-25 10:28:56 +02:00
parent 4f04fc5457
commit 91c0a083b3
3 changed files with 188 additions and 113 deletions

View File

@ -23,12 +23,19 @@ public:
/**
* Constructor
* reads config file, creates socket, assigns function table
* @param argc from command line
* @param argv from command line
* @param succecc socket creation was successfull
* rbase pointer to the receiver base
* @param rbase pointer to the receiver base
* @param pn port number (defaults to default port number)
*/
slsReceiverTCPIPInterface(int argc, char *argv[], int &success, slsReceiverBase* rbase);
slsReceiverTCPIPInterface(int &success, slsReceiverBase* rbase, int pn=-1);
/**
* Sets the port number to listen to.
Take care that the client must know to whcih port it has to listen to, so normally it is better to use a fixes port from the instatiation or change it from the client.
@param pn port number (-1 only get)
\returns actual port number
*/
int setPortNumber(int pn=-1);
/**
* Starts listening on the TCP port for client comminication
@ -100,6 +107,7 @@ private:
*/
static void* startTCPServerThread(void *this_pointer);
/**
* Thread started which is a TCP server
* Called by start()
@ -261,6 +269,10 @@ private:
/** size of one frame*/
int tenGigaEnable;
/** port number */
int portNumber;
protected:
/** Socket */
MySocketTCP* socket;