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 2020#include " NetworkSocketAPI/NetworkStack.h"
2121
2222
23+ /* * NetworkInterface class
24+ *
25+ * Common interface that is shared between network devices
26+ */
2327class NetworkInterface {
2428public:
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+
3238protected:
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
You can’t perform that action at this time.
0 commit comments