mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-19 16:27:13 +02:00
changed the setClientIP function and included 2 header files for IP validation
git-svn-id: file:///afs/psi.ch/project/sls_det_software/svn/slsDetectorSoftware@81 951219d9-93cf-4727-9268-0efd64621fa3
This commit is contained in:
@ -446,8 +446,8 @@ typedef struct sharedSlsDetector {
|
||||
char* getClientIP() {return thisDetector->clientIP;};
|
||||
/** returns the client MAC address for gotthard \sa sharedSlsDetector */
|
||||
char* getClientMAC() {return thisDetector->clientMAC;};
|
||||
/** sets the client IP address for gotthard \sa sharedSlsDetector */
|
||||
char* setClientIP(string clientIP) {sprintf(thisDetector->clientIP,clientIP.c_str()); return thisDetector->clientIP;};
|
||||
/** validates and sets the client IP address for gotthard \sa sharedSlsDetector */
|
||||
char* setClientIP(string clientIP);
|
||||
/** sets the client MAC address for gotthard \sa sharedSlsDetector */
|
||||
char* setClientMAC(string clientMAC) {sprintf(thisDetector->clientMAC,clientMAC.c_str());return thisDetector->clientMAC;};
|
||||
|
||||
|
Reference in New Issue
Block a user