FireSync API
 All Classes Files Functions Variables Typedefs Friends Macros Modules Pages
kDhcpClient.h
Go to the documentation of this file.
1 
8 #ifndef K_FIRESYNC_DHCP_CLIENT_H
9 #define K_FIRESYNC_DHCP_CLIENT_H
10 
11 #include <kApi/kApiDef.h>
12 #include <kApi/Io/kNetwork.h>
13 #include <kFireSync/kFsDef.h>
14 
21 typedef k32s kDhcpEvent;
22 
24 #define kDHCP_EVENT_TIMEOUT (0x0000)
25 #define kDHCP_EVENT_IP_CONFIG_ADDED (0x0001)
26 #define kDHCP_EVENT_IP_CONFIG_REMOVED (0x0002)
27 
29 typedef struct kDhcpClientEventArgs
30 {
31  kIpAddress address;
32  kIpAddress gateway;
33  k32u prefixLength;
34 
35  kDhcpEvent eventType;
36 } kDhcpClientEventArgs;
37 
45 //typedef kObject kDhcpClient; --forward-declared in kFsDef.x.h
46 
55 kFsFx(kStatus) kDhcpClient_Construct(kDhcpClient* client, kAlloc allocator);
56 
74 kFsFx(kStatus) kDhcpClient_AddEventHandler(kDhcpClient client, kCallbackFx function, kPointer receiver);
75 
85 kFsFx(kStatus) kDhcpClient_Start(kDhcpClient client, const kChar* adapterName, kMacAddress macAddress);
86 
87 #include <kFireSync/Net/kDhcpClient.x.h>
88 
89 #endif
kStatus kDhcpClient_Start(kDhcpClient client, const kChar *adapterName, kMacAddress macAddress)
Starts the DHCP negotiation process.
kStatus kDhcpClient_Construct(kDhcpClient *client, kAlloc allocator)
Constructs a kDhcpClient object.
Implements the kDhcpClient format for IP config acquisition.
Essential API declarations for the kFireSync library.
kStatus kDhcpClient_AddEventHandler(kDhcpClient client, kCallbackFx function, kPointer receiver)
Add a IP address change notification handler.
Represents a DHCP event.