Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: lpc1768-picotcp-demo ZeroMQ_PicoTCP_Publisher_demo TCPSocket_HelloWorld_PicoTCP Pico_TCP_UDP_Test ... more
pico_dhcp_client.h
00001 /********************************************************************* 00002 PicoTCP. Copyright (c) 2012-2015 Altran Intelligent Systems. Some rights reserved. 00003 See LICENSE and COPYING for usage. 00004 00005 . 00006 00007 *********************************************************************/ 00008 #ifndef INCLUDE_PICO_DHCP_CLIENT 00009 #define INCLUDE_PICO_DHCP_CLIENT 00010 #include "pico_defines.h" 00011 #ifdef PICO_SUPPORT_UDP 00012 #include "pico_dhcp_common.h" 00013 #include "pico_addressing.h" 00014 #include "pico_protocol.h" 00015 00016 int pico_dhcp_initiate_negotiation(struct pico_device *device, void (*callback)(void*cli, int code), uint32_t *xid); 00017 void *pico_dhcp_get_identifier(uint32_t xid); 00018 struct pico_ip4 pico_dhcp_get_address(void *cli); 00019 struct pico_ip4 pico_dhcp_get_gateway(void *cli); 00020 struct pico_ip4 pico_dhcp_get_netmask(void *cli); 00021 struct pico_ip4 pico_dhcp_get_nameserver(void*cli, int index); 00022 int pico_dhcp_client_abort(uint32_t xid); 00023 00024 /* possible codes for the callback */ 00025 #define PICO_DHCP_SUCCESS 0 00026 #define PICO_DHCP_ERROR 1 00027 #define PICO_DHCP_RESET 2 00028 00029 #endif 00030 #endif
Generated on Tue Jul 12 2022 15:59:21 by
1.7.2