summaryrefslogtreecommitdiff
path: root/libs/networking
diff options
context:
space:
mode:
Diffstat (limited to 'libs/networking')
-rw-r--r--libs/networking/include/AbstractSocket.h5
-rw-r--r--libs/networking/include/ConnectionHandler.h2
-rw-r--r--libs/networking/include/Credentials.h3
-rw-r--r--libs/networking/include/HTTPParser.h7
-rw-r--r--libs/networking/include/HTTPRequestHandler.h1
-rw-r--r--libs/networking/include/HTTPResponse.h1
-rw-r--r--libs/networking/include/Principal.h4
-rw-r--r--libs/networking/include/ServerSocket.h2
8 files changed, 6 insertions, 19 deletions
diff --git a/libs/networking/include/AbstractSocket.h b/libs/networking/include/AbstractSocket.h
index 5a3fa87..67d5da1 100644
--- a/libs/networking/include/AbstractSocket.h
+++ b/libs/networking/include/AbstractSocket.h
@@ -54,9 +54,8 @@ private:
bool blocking;
cConnectionPoint *thisSide;
ConnectionPointList others; ///< client sockets have only one other side,
- ///< but server sockets can have multiple connections open at the same time,
- ///< so we probabely need a container here.
- // cConnectionPointInfo *FetchLocalInfo(int Socket, struct addrinfo *AI);
+ ///< but server sockets can have multiple connections open at the same time,
+ ///< so we probabely need a container here.
};
#endif /* ABSTRACTSOCKET_H */
diff --git a/libs/networking/include/ConnectionHandler.h b/libs/networking/include/ConnectionHandler.h
index 108a366..bd170ad 100644
--- a/libs/networking/include/ConnectionHandler.h
+++ b/libs/networking/include/ConnectionHandler.h
@@ -42,12 +42,10 @@ public:
virtual ~cConnectionHandler();
void Action(void);
-
bool AuthorizationRequired(void) { return config.AuthorizationRequired(); }
const char *NOnce(void) const { return nonce; }
bool StayConnected(void) const { return stayConnected; }
virtual void Cancel(int WaitSeconds = 0);
-
static void RegisterRequestHandler(const char *UrlPrefix, cHTTPRequestHandler *CommandHandler);
static void RegisterDefaultHandler(cHTTPRequestHandler *DefaultHandler);
static void Cleanup(void);
diff --git a/libs/networking/include/Credentials.h b/libs/networking/include/Credentials.h
index 44dc17c..8088584 100644
--- a/libs/networking/include/Credentials.h
+++ b/libs/networking/include/Credentials.h
@@ -39,14 +39,11 @@ public:
const cPrincipal *FindPrincipal(const char *Name, const char *Realm);
const char *ApplicationRealm(void) const;
void SetApplicationRealm(const char *ApplicationRealm = "knownUser@myApp");
-
virtual int Load(const char *FileName);
virtual int Store(const char *FileName);
-
void Put(const char *Key, cPrincipal *p);
cPrincipal *Get(const char *Key);
void Clear(void);
-
const_iterator begin() { return internalMap.begin(); }
const_iterator end() { return internalMap.end(); }
diff --git a/libs/networking/include/HTTPParser.h b/libs/networking/include/HTTPParser.h
index 2e8b12a..ab5fb4b 100644
--- a/libs/networking/include/HTTPParser.h
+++ b/libs/networking/include/HTTPParser.h
@@ -28,8 +28,7 @@
class cHTTPMessage;
class cHTTPRequest;
class cHTTPResponse;
-class cHTTPParser
-{
+class cHTTPParser {
public:
cHTTPParser();
virtual ~cHTTPParser();
@@ -39,9 +38,7 @@ public:
protected:
cHTTPRequest *parseRequest(const char *MessageBuf);
cHTTPResponse *parseResponse(const char *MessageBuf);
-
-private:
-};
+ };
#endif /* HTTPPARSER_H */
diff --git a/libs/networking/include/HTTPRequestHandler.h b/libs/networking/include/HTTPRequestHandler.h
index 9255cae..53b188c 100644
--- a/libs/networking/include/HTTPRequestHandler.h
+++ b/libs/networking/include/HTTPRequestHandler.h
@@ -35,7 +35,6 @@ public:
virtual cHTTPResponse *ProcessRequest(cHTTPRequest &Request) = 0;
virtual void Usage(cStringBuilder &sb) = 0;
-
const char *ID() const { return prefix; }
private:
diff --git a/libs/networking/include/HTTPResponse.h b/libs/networking/include/HTTPResponse.h
index 0bb6d72..e419a49 100644
--- a/libs/networking/include/HTTPResponse.h
+++ b/libs/networking/include/HTTPResponse.h
@@ -52,7 +52,6 @@ public:
virtual void SetContentType(const char *ContentType) { cHTTPMessage::SetContentType(ContentType); }
virtual void SetContentSize(size_t ContentSize) { cHTTPMessage::SetContentSize(ContentSize); }
cStringBuilder &StringBuilder(void) { return content; }
-
static const char *ServerID(void);
static void SetServerID(const char *ServerID);
diff --git a/libs/networking/include/Principal.h b/libs/networking/include/Principal.h
index e777946..50693f9 100644
--- a/libs/networking/include/Principal.h
+++ b/libs/networking/include/Principal.h
@@ -30,18 +30,16 @@ public:
cPrincipal(const char *Name, const char *Realm);
cPrincipal(const cPrincipal &other);
virtual ~cPrincipal();
+
cPrincipal &operator =(const cPrincipal &other);
const char *operator *(void) { return name; }
-
void CreateHash(const char *Password);
-
const char *Name(void) const { return name; }
const char *Realm(void) const { return realm; }
const char *ExtendedInfo(void) const { return xinfo; }
int Age(void) const { return age; }
void SetAge(int Age) { age = Age; }
const char *Hash(void) const { return hash; }
-
void Dump(void) const;
protected:
diff --git a/libs/networking/include/ServerSocket.h b/libs/networking/include/ServerSocket.h
index 9133fea..506ae73 100644
--- a/libs/networking/include/ServerSocket.h
+++ b/libs/networking/include/ServerSocket.h
@@ -46,7 +46,7 @@ public:
private:
int port; ///< in case we plenty open and close server sockets
- ///< we need a place to remember the server port
+ ///< we need a place to remember the server port
bool active;
};