Skip to content

Commit 8561209

Browse files
committed
Standardized documentation of the NetworkInterface class
1 parent 01f38cc commit 8561209

File tree

1 file changed

+16
-5
lines changed

1 file changed

+16
-5
lines changed

NetworkInterface.h

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,22 +20,33 @@
2020
#include "NetworkSocketAPI/NetworkStack.h"
2121

2222

23+
/** NetworkInterface class
24+
*
25+
* Common interface that is shared between network devices
26+
*/
2327
class NetworkInterface {
2428
public:
2529
virtual ~NetworkInterface() {};
26-
NetworkInterface() {}
2730

28-
/** Get the internally stored IP address
29-
/return IP address of the interface or null if not yet connected
30-
*/
31+
/** Get the local IP address
32+
*
33+
* @return Null-terminated representation of the local IP address
34+
* or null if not yet connected
35+
*/
3136
virtual const char *get_ip_address() = 0;
37+
3238
protected:
3339
friend class Socket;
3440
friend class UDPSocket;
3541
friend class TCPSocket;
3642
friend class TCPServer;
3743
friend class SocketAddress;
38-
virtual NetworkStack * get_stack(void) = 0;
44+
45+
/** Provide access to the NetworkStack object
46+
*
47+
* @return The underlying NetworkStack object
48+
*/
49+
virtual NetworkStack *get_stack() = 0;
3950
};
4051

4152

0 commit comments

Comments
 (0)