File tree Expand file tree Collapse file tree 1 file changed +16
-5
lines changed Expand file tree Collapse file tree 1 file changed +16
-5
lines changed Original file line number Diff line number Diff line change 20
20
#include " NetworkSocketAPI/NetworkStack.h"
21
21
22
22
23
+ /* * NetworkInterface class
24
+ *
25
+ * Common interface that is shared between network devices
26
+ */
23
27
class NetworkInterface {
24
28
public:
25
29
virtual ~NetworkInterface () {};
26
- NetworkInterface () {}
27
30
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
+ */
31
36
virtual const char *get_ip_address () = 0;
37
+
32
38
protected:
33
39
friend class Socket ;
34
40
friend class UDPSocket ;
35
41
friend class TCPSocket ;
36
42
friend class TCPServer ;
37
43
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;
39
50
};
40
51
41
52
You can’t perform that action at this time.
0 commit comments