| | 218 | /* -- NetworkInterface -- */ |
| | 219 | |
| | 220 | class NetworkInterface { |
| | 221 | |
| | 222 | public: |
| | 223 | NetworkInterface(Wiz810MjDevice& networkDevice); |
| | 224 | |
| | 225 | Wiz810MjDevice& device; // TODO: Make this a generic "network device" interface |
| | 226 | }; |
| | 227 | |
| | 228 | NetworkInterface::NetworkInterface(Wiz810MjDevice& networkDevice) : device (networkDevice) { |
| | 229 | /* |
| | 230 | |
| | 231 | Note: The "weirdness" in this function declaration is a "initalization list", |
| | 232 | i.e. this bit: |
| | 233 | |
| | 234 | ) : device (networkDevice) { |
| | 235 | |
| | 236 | it is needed to give the 'device' Reference a value supplied to the method |
| | 237 | rather than having a new 'Wiz810MjDevice' instance created. |
| | 238 | */ |
| | 239 | }; |
| | 240 | |
| | 241 | // NetworkInterface Network = NetworkInterface(...); // TODO: Make this a global |
| | 242 | |
| | 243 | /* ----------------------- */ |
| | 244 | |