![]() |
Network Dual-Stack Component
Version 7.0 (Beta)
MDK-Professional Middleware for IPv4 and IPv6 Networking
|
The following sections describe the changes to the API functions of the Network Component with IPv6 support compared to RL-TCPnet (Real-Time Library provided with MDK Version 4) and the IPv4-only Network Component.
The following sections describe the changes to the API functions of the Network Component compared to RL-TCPnet, the Real-Time Library provided with MDK Version 4. Previously, there have been two files carrying the header files: rtl.h and net_config.h. This has been unified in MDK-ARM Version 5 to one header file called rl_net.h. The MDK-ARM Version 5 Network Component requires CMSIS-RTOS functionality. Events are no longer called by interrupt service routines which makes the timing of the overall system more predictable.
The API functions along with the differences are shown in the order:
RL-TCPnet
: MDK-ARM Version 4 with links to the RL-ARM online manual.Network Component
: MDK-ARM Version 5.Description of the difference (if more than a name change to the new naming convention).
rtl.h // Network API for RL-ARM middleware components (MDK-ARM Version 4) rl_net.h // Complete API for Network Component (MDK-ARM Version 5)
MDK Middleware now uses a single header file for the Network Component.
void init_TcpNet (void) netStatus netInitialize (void)
Return code changed to netStatus.
BOOL main_TcpNet (void) removed
This function is now called internally in Network Component library.
void timer_tick (void) removed
The function is now replaced by CMSIS-RTOS functionality and therefore no longer required.
did not exist const char *netSYS_GetHostName (void)
New function added.
did not exist netStatus netSYS_SetHostName (const char *hostname)
New function added.
U8 udp_get_socket (U8 tos, U8 opt, U16 (*listener)(U8 socket, U8 *remip, U16 port, U8 *buf, U16 len)) int32_t netUDP_GetSocket (netUDP_cb_t cb_func)
Return code changed to int32_t, removed parameters tos and opt. Refer to netUDP_cb_t.
BOOL udp_release_socket (U8 socket) netStatus netUDP_ReleaseSocket (int32_t socket)
Return code changed to netStatus.
BOOL udp_open (U8 socket, U16 locport) netStatus netUDP_Open (int32_t socket, uint16_t port)
Return code changed to netStatus.
BOOL udp_close (U8 socket) netStatus netUDP_Close (int32_t socket)
Return code changed to netStatus.
BOOL udp_mcast_ttl (U8 socket, U8 ttl) removed
Use netUDP_SetOption instead.
did not exist netStatus netUDP_SetOption (int32_t socket, netUDP_Option option, uint32_t val)
New function added.
U8 *udp_get_buf (U16 size) uint8_t *netUDP_GetBuffer (uint32_t size)
Identical functionality.
BOOL udp_send (U8 socket, U8 *remip, U16 remport, U8 *buf, U16 dlen) netStatus netUDP_Send (int32_t socket, const NET_ADDR *addr, uint8_t *buf, uint32_t len)
Return code changed to netStatus and IP address to NET_ADDR.
U8 tcp_get_socket (U8 type, U8 tos, U16 tout, U16 (*listener)(U8 socket, U8 event, U8 *buf, U16 len)) int32_t netTCP_GetSocket (netTCP_cb_t cb_func)
Identical functionality.
BOOL tcp_release_socket (U8 socket) netStatus netTCP_ReleaseSocket (int32_t socket)
Return code changed to netStatus.
BOOL tcp_listen (U8 socket, U16 locport) netStatus netTCP_Listen (int32_t socket, uint16_t port)
Return code changed to netStatus.
BOOL tcp_connect (U8 socket, U8 *remip, U16 remport, U16 locport ) netStatus netTCP_Connect (int32_t socket, const NET_ADDR *addr, uint16_t local_port)
Return code changed to netStatus and IP address to NET_ADDR.
U8 *tcp_get_buf (U16 size) uint8_t *netTCP_GetBuffer (uint32_t size)
Identical functionality.
U16 tcp_max_dsize (U8 socket) uint32_t netTCP_GetMaxSegmentSize (int32_t socket)
Identical functionality.
BOOL tcp_check_send (U8 socket) bool netTCP_SendReady (int32_t socket)
Identical functionality.
U8 tcp_get_state (U8 socket) netTCP_State netTCP_GetState (int32_t socket)
Return code changed to tcpState.
BOOL tcp_send (U8 socket, U8 *buf, U16 dlen) netStatus netTCP_Send (int32_t socket, uint8_t *buf, uint32_t len)
Return code changed to netStatus.
BOOL tcp_close (U8 socket) netStatus netTCP_Close (int32_t socket)
Return code changed to netStatus.
BOOL tcp_abort (U8 socket) netStatus netTCP_Abort (int32_t socket)
Return code changed to netStatus.
void tcp_reset_window (U8 socket) netStatus netTCP_ResetReceiveWindow (int32_t socket)
Return code changed to netStatus.
BOOL arp_cache_ip ( U8 *ipadr, U8 type) netStatus netARP_CacheIP (uint32_t if_num, const uint8_t *ip4_addr, netARP_CacheType type)
BOOL arp_cache_mac ( U8 *hwadr) netStatus netARP_CacheMAC (uint32_t if_num, const uint8_t *mac_addr)
did not exist netStatus netARP_GetIP (uint32_t if_num, const uint8_t *mac_addr, uint8_t *ip4_addr)
Get an IP address from the ARP cache.
did not exist netStatus netARP_GetMAC (uint32_t if_num, const uint8_t *ip4_addr, uint8_t *mac_addr)
Get a MAC address from the ARP cache.
void ppp_listen (const char *user, const char *passw) netStatus netPPP_Listen (const char *username, const char *password)
Return code changed to netStatus.
void ppp_connect (const char *dialnum, const char *user, const char *passw) netStatus netPPP_Connect (const char *dial_num, const char *username, const char *password)
Return code changed to netStatus.
void ppp_close (void) netStatus netPPP_Close (void)
Return code changed to netStatus.
void slip_listen (void) netStatus netSLIP_Listen (void)
Return code changed to netStatus.
void slip_connect (const char *dialnum) netStatus netSLIP_Connect (const char *dial_num)
Return code changed to netStatus.
void slip_close (void) netStatus netSLIP_Close (void)
Return code changed to netStatus.
U8 get_host_by_name (U8 *hostn, void (*cbfunc)(U8 event, U8 *host_ip)) netStatus netDNSc_GetHostByName (const char *name, netDNSc_cb_t cb_func)
BOOL smtp_connect (U8 *ipadr, U16 port, void (*cbfunc)(U8 event)) netStatus netSMTPc_Connect (const NET_ADDR *addr)
void dhcp_disable (void) netStatus netDHCP_Disable (uint32_t if_num)
BOOL igmp_join ( U8 *group_ip) netStatus netIGMP_Join (uint32_t if_num, const uint8_t *ip4_addr)
BOOL igmp_leave ( U8 *group_ip) netStatus netIGMP_Leave (uint32_t if_num, const uint8_t *ip4_addr)
BOOL snmp_trap ( U8 *manager_ip, U8 gen_trap, U8 spec_trap, U16 *obj_list) netStatus netSNMP_Trap (const NET_ADDR *addr, uint8_t generic, uint8_t specific, const uint16_t *obj_list)
BOOL snmp_set_community (const char *community) netStatus netSNMP_SetCommunity (const char *community)
Return code changed to netStatus.
BOOL icmp_ping ( U8 *remip, void (*cbfunc)(U8 event)) netStatus netPing_Echo (const NET_ADDR *addr, netPing_cb_t cb_func)
BOOL ftpc_connect (U8 *ipadr, U16 port, U8 command, void (*cbfunc)(U8 event)) netStatus netFTPc_Connect (const NET_ADDR *addr, netFTP_Command command)
did not exist uint8_t netFTPs_CheckUsername (const char *username)
Check if an user account exist in the user database.
did not exist bool netFTPs_CheckPassword (uint8_t user_id, const char *password)
Check user account password in the user database.
did not exist void netFTPc_Notify (netFTPc_Event event)
Notify the user application when FTP client operation ends.
BOOL tftpc_put (U8 *ipadr, U16 port, const char *src, const char *dst, void (*cbfunc)(U8 event)) netStatus netTFTPc_Put (const NET_ADDR *addr, const char *fname, const char *local_fname)
BOOL tftpc_get (U8 *ipadr, U16 port, const char *src, const char *dst, void (*cbfunc)(U8 event)) netStatus netTFTPc_Get (const NET_ADDR *addr, const char *fname, const char *local_fname)
did not exist void netTFTPc_Notify (netTFTPc_Event event)
Notify the user application when TFTP client operation ends.
BOOL sntp_get_time ( U8 *ipadr, void (*cbfunc)(U32 utc_time)) netStatus netSNTPc_GetTime (const NET_ADDR *addr, netSNTPc_cb_t cb_func)
void ftp_evt_notify (U8 evt) void netFTPs_Notify (netFTPs_Event event)
Event definitions changed to enum netFTPs_Event.
did not exist uint8_t netTELNETs_CheckUsername (const char *username)
Check if an user account exist in the user database.
did not exist bool netTELNETs_CheckPassword (uint8_t user_id, const char *password)
Check user account password in the user database.
did not exist void netSMTPc_Notify (netSMTPc_Event event)
const char *http_encoding (void) const char *netCGI_Charset (void)
Identical functionality.
Return code changed from SCK_Exxx to BSD_ERROR_xxx.
net_config.h // Common TCPnet definitions (MDK-ARM Version 4) rl_net_ds.h // Complete API for Network Component (MDK-ARM Version 5, Dual-Stack)
MDK Middleware now uses a single header file for the Network Component.
void dhcp_cbfunc ( U8 opt, U8 *val, U16 len) void netDHCP_Notify (uint32_t if_num, uint8_t option, const uint8_t *val, uint32_t len)
void *http_fopen ( U8 *name) void *netHTTPs_fopen (const char *fname)
Identical functionality.
void http_fclose (void *file) void netHTTPs_fclose (void *file)
Identical functionality.
U16 http_fread (void *file, U8 *buf, U16 len) uint32_t netHTTPs_fread (void *file, uint8_t *buf, uint32_t len)
Identical functionality.
BOOL http_fgets (void *file, U8 *buf, U16 size) char *netHTTPs_fgets (void *file, char *buf, uint32_t size)
Return code changed to *char
.
U32 http_finfo ( U8 *name) void netHTTPs_fstat (const char *fname, uint32_t *fsize, uint32_t *ftime)
*fsize
and *ftime
.void cgi_process_var ( U8 *qstr) void netCGI_ProcessQuery (const char *qstr)
Identical functionality.
void cgi_process_data (U8 code, U8 *dat, U16 len) void netCGI_ProcessData (uint8_t code, const char *data, uint32_t len)
Identical functionality.
U16 cgi_func ( U8 *env, U8 *buf, U16 buflen, U32 *pcgi) uint32_t netCGI_Script (const char *env, char *buf, uint32_t buf_len, uint32_t *pcgi)
Identical functionality.
did not exist const char *netCGI_ContentType (const char *file_ext)
Add custom MIME types for unsupported file types.
U8 *cgx_content_type (void) const char *netCGX_ContentType (void)
Return code changed to const
char
*.
BOOL http_accept_host (U8 *rem_ip, U16 rem_port) bool netHTTPs_AcceptClient (const NET_ADDR *addr)
Identical functionality.
BOOL http_file_access (U8 *fname, U8 user_id) bool netHTTPs_FileAccess (uint8_t user_id, const char *fname)
Identical functionality.
U8 http_check_account ( U8 *user, U8 *passw) uint8_t netHTTPs_CheckAccount (const char *username, const char *password)
Identical functionality.
U8 *http_get_var ( U8 *env, void *ansi, U16 maxlen) const char *netCGI_GetEnvVar (const char *env, char *ansi, uint32_t max_len)
Return code changed to const
char
*.
U8 *http_get_lang (void) const char *netHTTPs_GetLanguage (void)
Return code changed to const
char
*.
void http_get_info (REMOTEM *info) netStatus netHTTPs_GetClient (NET_ADDR *addr, uint32_t addr_len)
Return code changed to netStatus.
U8 http_get_session (void) int32_t netHTTPs_GetSession (void)
Identical functionality.
U8 http_get_user_id (void) uint8_t netHTTPs_GetUserId (void)
Identical functionality.
U8 *http_get_content_type (void) const char *netHTTPs_GetContentType (void)
Return code changed to const
char
*.
U32 http_date (RL_TIME *time) removed
U16 tnet_cbfunc (U8 code, U8 *buf, U16 buflen) uint32_t netTELNETs_ProcessMessage (netTELNETs_Message msg, char *buf, uint32_t buf_len)
Identical functionality.
U16 tnet_process_cmd ( U8 *cmd, U8 *buf, U16 buflen, U32 *pvar) uint32_t netTELNETs_ProcessCommand (const char *cmd, char *buf, uint32_t buf_len, uint32_t *pvar)
Identical functionality.
BOOL tnet_ccmp ( U8 *buf, U8 *cmd) bool netTELNETs_CheckCommand (const char *cmd, const char *user_cmd)
Identical functionality.
void tnet_set_delay (U16 cnt) removed
Use netTELNETs_RepeatCommand instead.
void tnet_get_info (REMOTEM *info) netStatus netTELNETs_GetClient (NET_ADDR *addr, uint32_t addr_len)
Return code changed to netStatus.
U8 tnet_get_session (void) int32_t netTELNETs_GetSession (void)
Identical functionality.
U8 tnet_get_user_id (void) uint8_t netTELNETs_GetUserId (void)
Identical functionality.
BOOL tnet_msg_poll (U8 session) removed
Use netTELNETs_RequestMessage instead.
BOOL tnet_accept_host (U8 *rem_ip, U16 rem_port) bool netTELNETs_AcceptClient (const NET_ADDR *addr)
Identical functionality.
U8 tnet_check_account (U8 code, U8 *id) removed
Use netTELNETs_CheckUsername and netTELNETs_CheckPassword instead.
void *tftp_fopen ( U8 *fname, U8 *mode) void *netTFTPs_fopen (const char *fname, const char *mode)
Identical functionality.
void tftp_fclose (void *file) void netTFTPs_fclose (void *file)
Identical functionality.
U16 tftp_fread (void *file, U8 *buf, U16 len) uint32_t netTFTPs_fread (void *file, uint8_t *buf, uint32_t len)
Identical functionality.
U16 tftp_fwrite (void *file, U8 *buf, U16 len) uint32_t netTFTPs_fwrite (void *file, const uint8_t *buf, uint32_t len)
Identical functionality.
BOOL tftp_accept_host (U8 *rem_ip, U16 rem_port) bool netTFTPs_AcceptClient (const NET_ADDR *addr)
Identical functionality.
void *tftpc_fopen ( U8 *fname, U8 *mode) void *netTFTPc_fopen (const char *fname, const char *mode)
Identical functionality.
void tftpc_fclose (void *file) void netTFTPc_fclose (void *file)
Identical functionality.
U16 tftpc_fread (void *file, U8 *buf, U16 len) uint32_t netTFTPc_fread (void *file, uint8_t *buf, uint32_t len)
Identical functionality.
U16 tftpc_fwrite (void *file, U8 *buf, U16 len) uint32_t netTFTPc_fwrite (void *file, const uint8_t *buf, uint32_t len)
Identical functionality.
void *ftp_fopen ( U8 *fname, U8 *mode) void *netFTPs_fopen (const char *fname, const char *mode)
Identical functionality.
void ftp_fclose (void *file) void netFTPs_fclose (void *file)
Identical functionality.
U16 ftp_fread (void *file, U8 *buf, U16 len) uint32_t netFTPs_fread (void *file, uint8_t *buf, uint32_t len)
Identical functionality.
U16 ftp_fwrite (void *file, U8 *buf, U16 len) uint32_t netFTPs_fwrite (void *file, const uint8_t *buf, uint32_t len)
Identical functionality.
BOOL ftp_fdelete ( U8 *fname) bool netFTPs_fdelete (const char *fname)
Identical functionality.
BOOL ftp_frename ( U8 *fname, U8 *newn) bool netFTPs_frename (const char *fname, const char *newname)
Identical functionality.
U16 ftp_ffind (U8 code, U8 *buf, U8 *mask, U16 len) uint32_t netFTPs_ffind (uint8_t code, char *buf, uint32_t buflen, const char *mask)
Identical functionality.
BOOL ftp_accept_host (U8 *rem_ip, U16 rem_port) bool netFTPs_AcceptClient (const NET_ADDR *addr)
Changed IP address and port to NET_ADDR.
U8 ftp_check_account (U8 code, U8 *id) removed
Use netFTPs_CheckUsername and netFTPs_CheckPassword instead.
U8 ftp_get_user_id (void) uint8_t netFTPs_GetUserId (void)
Identical functionality.
BOOL ftp_file_access (U8 *fname, U8 mode, U8 user_id) bool netFTPs_FileAccess (uint8_t user_id, const char *fname, uint8_t access)
Identical functionality.
void ftp_evt_notify (U8 evt) void netFTPs_Notify (netFTPs_Event event)
Changed event to netFTPs_Event enum.
void *ftpc_fopen ( U8 *mode) void *netFTPc_fopen (const char *fname, const char *mode)
void ftpc_fclose (void *file) void netFTPc_fclose (void *file)
Identical functionality.
U16 ftpc_fread (void *file, U8 *buf, U16 len) uint32_t netFTPc_fread (void *file, uint8_t *buf, uint32_t len)
Identical functionality.
U16 ftpc_fwrite (void *file, U8 *buf, U16 len) uint32_t netFTPc_fwrite (void *file, const uint8_t *buf, uint32_t len)
Identical functionality.
U16 ftpc_cbfunc (U8 code, U8 *buf, U16 buflen) uint32_t netFTPc_Process (netFTPc_Request request, char *buf, uint32_t buf_len)
Changed code/request to netFTPc_Request.
U8 get_host_by_name ( U8 *hostn, void (*cbfunc)(U8, U8 *)) netStatus netDNSc_GetHostByName (const char *name, netDNSc_cb_t cb_func)
Return code changed to netStatus and callback function uses netDNSc_cb_t.
U16 smtp_cbfunc (U8 code, U8 *buf, U16 buflen, U32 *pvar) uint32_t netSMTPc_Process (netSMTPc_Request request, char *buf, uint32_t buf_len, uint32_t *pvar)
Changed code/request to netSMTPc_Request.
BOOL smtp_accept_auth (U8 *srv_ip) bool netSMTPc_AcceptAuthentication (const NET_ADDR *addr)
Changed IP address to NET_ADDR.
Previous versions of the MDK-Professional Middleware (Keil.MDK-Middleware.6.2.0 and below) did not support IPv6. This has been added in the latest release. With this, a change in the namespace has taken place. Most functions are working identically, but have been extended to support IPv6.
The API functions along with the differences are shown in the order:
IPv4 Network Component
: MDK Version 5 with IPv4-only support.IPv4/IPv6 Network Component
: MDK Version 5 with IPv4/IPv6 support.Description of the difference.
netStatus net_initialize (void) netStatus netInitialize (void)
Changed function name to new naming convention.
int net_main (void) removed
This function is now called internally in Network Component library.
did not exist const char *netSYS_GetHostName (void)
New function added.
did not exist netStatus netSYS_SetHostName (const char *hostname)
New function added.
int32_t udp_get_socket (uint8_t tos, uint8_t opt, net_udp_cb_t cb_func) int32_t netUDP_GetSocket ( netUDP_cb_t cb_func)
Changed function name to new naming convention and removed cs_opt from parameter list.
netStatus udp_release_socket (int32_t socket) netStatus netUDP_ReleaseSocket (int32_t socket)
Changed function name to new naming convention.
netStatus udp_open (int32_t socket, uint16_t port) netStatus netUDP_Open (int32_t socket, uint16_t port)
Changed function name to new naming convention.
netStatus udp_close (int32_t socket) netStatus netUDP_Close (int32_t socket)
Changed function name to new naming convention.
uint8_t *udp_get_buf (uint32_t size) uint8_t *netUDP_GetBuffer (uint32_t size)
Changed function name to new naming convention.
netStatus udp_send (int32_t socket, const uint8_t *ip_addr, uint16_t port, uint8_t *buf, uint32_t len) netStatus netUDP_Send (int32_t socket, const NET_ADDR *addr, uint8_t *buf, uint32_t len)
Changed function name to new naming convention.
netStatus udp_multicast_ttl (int32_t socket, uint8_t ttl) removed
Use netUDP_SetOption instead.
did not exist netStatus netUDP_SetOption (int32_t socket, netUDP_Option option, uint32_t val)
New function added.
did not exist uint16_t netUDP_GetLocalPort (int32_t socket)
New function added.
int32_t tcp_get_socket (uint8_t type, uint8_t tos, uint32_t tout, net_tcp_cb_t cb_func) int32_t netTCP_GetSocket ( netTCP_cb_t cb_func)
Changed function name to new naming convention and removed parameters type, tos and tout.
netStatus tcp_release_socket (int32_t socket) netStatus netTCP_ReleaseSocket (int32_t socket)
Changed function name to new naming convention.
netStatus tcp_listen (int32_t socket, uint16_t port) netStatus netTCP_Listen (int32_t socket, uint16_t port)
Changed function name to new naming convention.
netStatus tcp_connect (int32_t socket, const uint8_t *ip_addr, uint16_t port, uint16_t local_port) netStatus netTCP_Connect (int32_t socket, const NET_ADDR *addr, uint16_t local_port)
Changed function name to new naming convention.
uint8_t *tcp_get_buf (uint32_t size) uint8_t *netTCP_GetBuffer (uint32_t size)
Changed function name to new naming convention.
uint32_t tcp_max_data_size (int32_t socket) uint32_t netTCP_GetMaxSegmentSize (int32_t socket)
Changed function name to new naming convention.
bool tcp_check_send (int32_t socket) bool netTCP_SendReady (int32_t socket)
Changed function name.
tcpState tcp_get_state (int32_t socket) netTCP_State netTCP_GetState (int32_t socket)
Changed function and return value name to new naming convention.
const char *tcp_ntoa (tcpState state) removed
netStatus tcp_send (int32_t socket, uint8_t *buf, uint32_t len) netStatus netTCP_Send (int32_t socket, uint8_t *buf, uint32_t len)
Changed function name to new naming convention.
netStatus tcp_close (int32_t socket) netStatus netTCP_Close (int32_t socket)
Changed function name to new naming convention.
netStatus tcp_abort (int32_t socket) netStatus netTCP_Abort (int32_t socket)
Changed function name to new naming convention.
netStatus tcp_reset_window (int32_t socket) netStatus netTCP_ResetReceiveWindow (int32_t socket)
Changed function name to new naming convention.
did not exist netStatus netTCP_SetOption (int32_t socket, netTCP_Option option, uint32_t val)
New function added.
did not exist netStatus netTCP_GetPeer (int32_t socket, NET_ADDR *addr, uint32_t addr_len)
New function added.
did not exist uint16_t netTCP_GetLocalPort (int32_t socket)
New function added.
did not exist uint32_t netTCP_GetTimer (int32_t socket)
New function added.
netStatus arp_cache_ip (uint32_t if_num, const uint8_t *ip_addr, arpCacheType type) netStatus netARP_CacheIP (uint32_t if_num, const uint8_t *ip4_addr, netARP_CacheType type)
Changed function name and parameters to new naming convention.
netStatus arp_cache_mac (uint32_t if_num, const uint8_t *mac_addr) netStatus netARP_CacheMAC (uint32_t if_num, const uint8_t *mac_addr)
Changed function name to new naming convention.
netStatus arp_get_ip ( const uint8_t *mac_addr, uint8_t *ip_addr) netStatus netARP_GetIP (uint32_t if_num, const uint8_t *mac_addr, uint8_t *ip4_addr)
Changed function name to new naming convention. Added parameter if_num.
netStatus arp_get_mac ( const uint8_t *ip_addr, uint8_t *mac_addr) netStatus netARP_GetMAC (uint32_t if_num, const uint8_t *ip4_addr, uint8_t *mac_addr)
Changed function name to new naming convention. Added parameter if_num.
did not exist netStatus netNDP_CacheIP (uint32_t if_num, const uint8_t *ip6_addr)
New function added.
did not exist netStatus netNDP_GetIP (uint32_t if_num, const uint8_t *mac_addr, uint8_t *ip6_addr)
New function added.
did not exist netStatus netNDP_GetMAC (uint32_t if_num, const uint8_t *ip6_addr, uint8_t *mac_addr)
New function added.
netStatus dhcp_disable (uint32_t if_num) netStatus netDHCP_Disable (uint32_t if_num)
Changed function name to new naming convention.
did not exist netStatus netDHCP_Enable (uint32_t if_num)
This function is used to start the DHCP service manually at runtime. This was not available previously.
netStatus igmp_join (uint32_t if_num, const uint8_t *ip_addr) netStatus netIGMP_Join (uint32_t if_num, const uint8_t *ip4_addr)
Changed function name and parameters to new naming convention.
netStatus igmp_leave (uint32_t if_num, const uint8_t *ip_addr) netStatus netIGMP_Leave (uint32_t if_num, const uint8_t *ip4_addr)
Changed function name and parameters to new naming convention.
void eth_link_notify (uint32_t if_num, ethLinkEvent event) void netETH_Notify (uint32_t if_num, netETH_Event event, uint32_t val)
Changed function and parameter names to new naming convention. Added parameter val.
did not exist netStatus netIF_GetOption (uint32_t if_id, netIF_Option option, uint8_t *buf, uint32_t buf_len)
New function added.
did not exist netStatus netIF_SetOption (uint32_t if_id, netIF_Option option, const uint8_t *buf, uint32_t buf_len)
New function added.
void dhcp_client_notify (uint32_t if_num, dhcpClientOption opt, const uint8_t *val, uint32_t len) void netDHCP_Notify (uint32_t if_num, uint8_t option, const uint8_t *val, uint32_t len)
Changed function name to new naming convention. Changed parameter option to uint8_t value to reflect the actual DHCP option numbers.
netStatus ppp_listen (const char *username, const char *password) netStatus netPPP_Listen (const char *username, const char *password)
Changed function name to new naming convention.
netStatus ppp_connect (const char *dial_num, const char *username, const char *password) netStatus netPPP_Connect (const char *dial_num, const char *username, const char *password)
Changed function name to new naming convention.
netStatus ppp_close (void) netStatus netPPP_Close (void)
Changed function name to new naming convention.
bool ppp_is_up (void) bool netPPP_LinkUp (void)
Changed function name to new naming convention.
netStatus slip_listen (void) netStatus netSLIP_Listen (void)
Changed function name to new naming convention.
netStatus slip_connect (const char *dial_num) netStatus netSLIP_Connect (const char *dial_num)
Changed function name to new naming convention.
netStatus slip_close (void) netStatus netSLIP_Close (void)
Changed function name to new naming convention.
bool slip_is_up (void) bool netSLIP_LinkUp (void)
Changed function name to new naming convention.
netStatus icmp_ping (const uint8_t *ip_addr, net_icmp_cb_t cb_func) netStatus netPing_Echo (const NET_ADDR *addr, netPing_cb_t cb_func)
Changed function name and parameters to new naming convention.
netStatus get_host_by_name (const char *name, net_dns_client_cb_t cb_func) netStatus netDNSc_GetHostByName (const char *name, netDNSc_cb_t cb_func)
Changed function name and parameters to new naming convention.
did not exist netStatus netFTPs_Start (void)
New function added.
did not exist netStatus netFTPs_Stop (void)
New function added.
did not exist bool netFTPs_Running (void)
New function added.
did not exist uint16_t netFTPs_GetPort (void)
New function added.
did not exist netStatus netFTPs_SetPort (uint16_t port)
New function added.
did not exist const char *netFTPs_GetUsername (void)
New function added.
did not exist netStatus netFTPs_SetUsername (const char *username)
New function added.
did not exist const char *netFTPs_GetPassword (void)
New function added.
did not exist netStatus netFTPs_SetPassword (const char *password)
New function added.
did not exist bool netFTPs_LoginActive (void)
New function added.
did not exist netStatus netFTPs_LoginOnOff (bool login)
New function added.
bool ftp_accept_client (const uint8_t *ip_addr, uint16_t port) bool netFTPs_AcceptClient (const NET_ADDR *addr)
Changed function name and parameters to new naming convention.
uint8_t ftp_check_username (const char *username) uint8_t netFTPs_CheckUsername (const char *username)
Changed function name to new naming convention.
bool ftp_check_password (uint8_t user_id, const char *password) bool netFTPs_CheckPassword (uint8_t user_id, const char *password)
Changed function name to new naming convention.
bool ftp_file_access (uint8_t user_id, const char *fname, uint8_t mode) bool netFTPs_FileAccess (uint8_t user_id, const char *fname, uint32_t access)
Changed function name to new naming convention. Renamed and respecified parameter mode.
uint8_t ftp_get_user_id (void) uint8_t netFTPs_GetUserId (void)
Changed function name to new naming convention.
void ftp_server_notify (ftpServerEvent event) void netFTPs_Notify (netFTPs_Event event)
Changed function name to new naming convention.
void *ftp_server_fopen (const char *fname, const char *mode) void *netFTPs_fopen (const char *fname, const char *mode)
Changed function name to new naming convention.
void ftp_server_fclose (void *file) void netFTPs_fclose (void *file)
Changed function name to new naming convention.
uint32_t ftp_server_fread (void *file, uint8_t *buf, uint32_t len) uint32_t netFTPs_fread (void *file, uint8_t *buf, uint32_t len)
Changed function name to new naming convention.
uint32_t ftp_server_fwrite (void *file, const uint8_t *buf, uint32_t len) uint32_t netFTPs_fwrite (void *file, const uint8_t *buf, uint32_t len)
Changed function name to new naming convention.
bool ftp_server_fdelete (const char *fname) bool netFTPs_fdelete (const char *fname)
Changed function name to new naming convention.
bool ftp_server_frename (const char *fname, const char *newname) bool netFTPs_frename (const char *fname, const char *newname)
Changed function name to new naming convention.
bool ftp_server_mkdir (const char *path) bool netFTPs_mkdir (const char *path)
Changed function name to new naming convention.
bool ftp_server_rmdir (const char *path) bool netFTPs_rmdir (const char *path)
Changed function name to new naming convention.
uint32_t ftp_server_ffind (uint8_t code, char *buf, uint32_t buflen, const char *mask) uint32_t netFTPs_ffind (uint8_t code, char *buf, uint32_t buf_len, const char *mask)
Changed function and parameter names to new naming convention.
netStatus ftp_client_connect (const uint8_t *ip_addr, uint16_t port, ftpCommand command) netStatus netFTPc_Connect (const NET_ADDR *addr, netFTP_Command command)
Changed function name and parameters to new naming convention.
uint32_t ftp_client_request (ftpClientRequest request, char *buf, uint32_t len) uint32_t netFTPc_Process (netFTPc_Request request, char *buf, uint32_t buf_len)
Changed function and parameter names to new naming convention.
void ftp_client_notify (ftpClientEvent event) void netFTPc_Notify (netFTPc_Event event)
Changed function name to new naming convention.
void *ftp_client_fopen (const char *fname, const char *mode) void *netFTPc_fopen (const char *fname, const char *mode)
Changed function name to new naming convention.
void ftp_client_fclose (void *file) void netFTPc_fclose (void *file)
Changed function name to new naming convention.
uint32_t ftp_client_fread (void *file, uint8_t *buf, uint32_t len) uint32_t netFTPc_fread (void *file, uint8_t *buf, uint32_t len)
Changed function name to new naming convention.
uint32_t ftp_client_fwrite (void *file, const uint8_t *buf, uint32_t len) uint32_t netFTPc_fwrite (void *file, const uint8_t *buf, uint32_t len)
Changed function name to new naming convention.
did not exist netStatus netTFTPs_Start (void)
New function added.
did not exist netStatus netTFTPs_Stop (void)
New function added.
did not exist bool netTFTPs_Running (void)
New function added.
did not exist uint16_t netTFTPs_GetPort (void)
New function added.
did not exist netStatus netTFTPs_SetPort (uint16_t port)
New function added.
bool tftp_accept_client (const uint8_t *ip_addr, uint16_t port) bool netTFTPs_AcceptClient (const NET_ADDR *addr)
Changed function name to new naming convention.
void *tftp_server_fopen (const char *fname, const char *mode) void *netTFTPs_fopen (const char *fname, const char *mode)
Changed function name to new naming convention.
void tftp_server_fclose (void *file) void netTFTPs_fclose (void *file)
Changed function name to new naming convention.
uint32_t tftp_server_fread (void *file, uint8_t *buf, uint32_t len) uint32_t netTFTPs_fread (void *file, uint8_t *buf, uint32_t len)
Changed function name to new naming convention.
uint32_t tftp_server_fwrite (void *file, const uint8_t *buf, uint32_t len) uint32_t netTFTPs_fwrite (void *file, const uint8_t *buf, uint32_t len)
Changed function name to new naming convention.
netStatus tftp_client_put (const uint8_t *ip_addr, uint16_t port, const char *src, const char *dst) netStatus netTFTPc_Put (const NET_ADDR *addr, const char *fname, const char *local_fname)
Changed function and parameter names to new naming convention.
netStatus tftp_client_get (const uint8_t *ip_addr, uint16_t port, const char *src, const char *dst) netStatus netTFTPc_Get (const NET_ADDR *addr, const char *fname, const char *local_fname)
Changed function and parameter names to new naming convention.
void tftp_client_notify (tftpClientEvent event) void netTFTPc_Notify (netTFTPc_Event event)
Changed function name to new naming convention.
void *tftp_client_fopen (const char *fname, const char *mode) void *netTFTPc_fopen (const char *fname, const char *mode)
Changed function name to new naming convention.
void tftp_client_fclose (void *file) void netTFTPc_fclose (void *file)
Changed function name to new naming convention.
uint32_t tftp_client_fread (void *file, uint8_t *buf, uint32_t len) uint32_t netTFTPc_fread (void *file, uint8_t *buf, uint32_t len)
Changed function name to new naming convention.
uint32_t tftp_client_fwrite (void *file, const uint8_t *buf, uint32_t len) uint32_t netTFTPc_fwrite (void *file, const uint8_t *buf, uint32_t len)
Changed function name to new naming convention.
did not exist netStatus netTELNETs_Start (void)
New function added.
did not exist netStatus netTELNETs_Stop (void)
New function added.
did not exist bool netTELNETs_Running (void)
New function added.
did not exist uint16_t netTELNETs_GetPort (void)
New function added.
did not exist netStatus netTELNETs_SetPort (uint16_t port)
New function added.
netStatus telnet_server_set_delay (uint32_t delay) netStatus netTELNETs_RepeatCommand (uint32_t delay)
Changed function name.
netStatus telnet_server_get_client (uint8_t *ip_addr, uint8_t *mac_addr) netStatus netTELNETs_GetClient (NET_ADDR *addr, uint32_t addr_len)
Changed function name and parameters to new naming convention. This function does not return a MAC address anymore.
int32_t telnet_server_get_session (void) int32_t netTELNETs_GetSession (void)
Changed function name to new naming convention.
did not exist const char *netTELNETs_GetUsername (void)
New function added.
did not exist netStatus netTELNETs_SetUsername (const char *username)
New function added.
did not exist const char *netTELNETs_GetPassword (void)
New function added.
did not exist netStatus netTELNETs_SetPassword (const char *password)
New function added.
did not exist bool netTELNETs_LoginActive (void)
New function added.
did not exist netStatus netTELNETs_LoginOnOff (bool login)
New function added.
bool telnet_check_command (const char *cmd, const char *user_cmd) bool netTELNETs_CheckCommand (const char *cmd, const char *user_cmd)
Changed function name to new naming convention.
uint32_t telnet_server_message (telnetServerMessage msg, char *buf, uint32_t len) uint32_t netTELNETs_ProcessMessage (netTELNETs_Message msg, char *buf, uint32_t buf_len)
Changed function and parameter names to new naming convention.
uint32_t telnet_server_process (const char *cmd, char *buf, uint32_t buflen, uint32_t *pvar) uint32_t netTELNETs_ProcessCommand (const char *cmd, char *buf, uint32_t buf_len, uint32_t *pvar)
Changed function name to new naming convention.
bool telnet_server_message_poll (int32_t session) removed
Use netTELNETs_RequestMessage function for unsolicited messages instead.
did not exist netStatus netTELNETs_RequestMessage (int32_t session)
New function added.
bool telnet_accept_client (const uint8_t *ip_addr, uint16_t port) bool netTELNETs_AcceptClient (const NET_ADDR *addr)
Changed function name and parameters to new naming convention.
uint8_t telnet_check_username (const char *username) uint8_t netTELNETs_CheckUsername (const char *username)
Changed function name to new naming convention.
bool telnet_check_password (uint8_t user_id, const char *password) bool netTELNETs_CheckPassword (uint8_t user_id, const char *password)
Changed function name to new naming convention.
uint8_t telnet_get_user_id (void) uint8_t netTELNETs_GetUserId (void)
Changed function name to new naming convention.
const char *http_get_env_var (const char *env, char *ansi, uint32_t maxlen) const char *netCGI_GetEnvVar (const char *env, char *ansi, uint32_t max_len)
Changed function name to new naming convention.
uint32_t http_utc_time (uint8_t hr, uint8_t min, uint8_t sec, uint8_t day, uint8_t mon, uint16_t year) uint32_t net_http_time (uint8_t hr, uint8_t min, uint8_t sec, uint8_t day, uint8_t mon, uint16_t year)
Changed function name. This is an internal utility function.
did not exist netStatus netHTTPs_Start (void)
New function added.
did not exist netStatus netHTTPs_Stop (void)
New function added.
did not exist bool netHTTPs_Running (void)
New function added.
did not exist uint16_t netHTTPs_GetPort (void)
New function added.
did not exist netStatus netHTTPs_SetPort (uint16_t port)
New function added.
did not exist const char *netHTTPs_GetUsername (void)
New function added.
did not exist netStatus netHTTPs_SetUsername (const char *username)
New function added.
did not exist const char *netHTTPs_GetPassword (void)
New function added.
did not exist netStatus netHTTPs_SetPassword (const char *password)
New function added.
did not exist bool netHTTPs_LoginActive (void)
New function added.
did not exist netStatus netHTTPs_LoginOnOff (bool login)
New function added.
netStatus http_server_get_client (uint8_t *ip_addr, uint8_t *mac_addr) netStatus netHTTPs_GetClient (NET_ADDR *addr, uint32_t addr_len)
Changed function name to new naming convention. Removed parameter mac_addr so that the function does not return a MAC address anymore.
int32_t http_server_get_session (void) int32_t netHTTPs_GetSession (void)
Changed function name to new naming convention.
const char *http_server_get_lang (void) const char *netHTTPs_GetLanguage (void)
Changed function name to new naming convention.
const char *http_server_get_content_type (void) const char *netHTTPs_GetContentType (void)
Changed function name to new naming convention.
void cgi_process_query (const char *qstr) void netCGI_ProcessQuery (const char *qstr)
Changed function name to new naming convention.
void cgi_process_data (uint8_t code, const char *data, uint32_t len) void netCGI_ProcessData (uint8_t code, const char *data, uint32_t len)
Changed function name to new naming convention.
uint32_t cgi_script (const char *env, char *buf, uint32_t buflen, uint32_t *pcgi) uint32_t netCGI_Script (const char *env, char *buf, uint32_t buf_len, uint32_t *pcgi)
Changed function name to new naming convention.
const char *cgi_content_type (const char *file_ext) const char *netCGI_ContentType (const char *file_ext)
Changed function name to new naming convention.
const char *cgx_content_type (void) const char *netCGX_ContentType (void)
Changed function name to new naming convention.
const char *http_encoding (void) const char *netCGI_Charset (void)
Changed function name to new naming convention.
bool http_accept_client (const uint8_t *ip_addr, uint16_t port) bool netHTTPs_AcceptClient (const NET_ADDR *addr)
Changed function name and parameters to new naming convention.
uint8_t http_check_account (const char *username, const char *password) uint8_t netHTTPs_CheckAccount (const char *username, const char *password)
Changed function name to new naming convention.
bool http_file_access (uint8_t user_id, const char *fname) bool netHTTPs_FileAccess (uint8_t user_id, const char *fname)
Changed function name to new naming convention.
uint8_t http_get_user_id (void) uint8_t netHTTPs_GetUserId (void)
Changed function name to new naming convention.
void *http_server_fopen (const char *fname) void *netHTTPs_fopen (const char *fname)
Changed function name to new naming convention.
void http_server_fclose (void *file) void netHTTPs_fclose (void *file)
Changed function name to new naming convention.
uint32_t http_server_fread (void *file, uint8_t *buf, uint32_t len) uint32_t netHTTPs_fread (void *file, uint8_t *buf, uint32_t len)
Changed function name to new naming convention.
char *http_server_fgets (void *file, char *buf, uint32_t size) char *netHTTPs_fgets (void *file, char *buf, uint32_t size)
Changed function name to new naming convention.
uint32_t http_server_ftime (const char *fname) removed
Use netHTTPs_fstat instead.
did not exist void netHTTPs_fstat (const char *fname, uint32_t *fsize, uint32_t *ftime)
New function added.
netStatus smtp_client_connect (const uint8_t *ip_addr, uint16_t port) netStatus netSMTPc_Connect (const NET_ADDR *addr)
Changed function name and parameters to new naming convention.
uint32_t smtp_client_request (smtpClientRequest request, char *buf, uint32_t buflen, uint32_t *pvar) uint32_t netSMTPc_Process (netSMTPc_Request request, char *buf, uint32_t buf_len, uint32_t *pvar)
Changed function name to new naming convention.
void smtp_client_notify (smtpClientEvent event) void netSMTPc_Notify (netSMTPc_Event event)
Changed function name to new naming convention.
bool smtp_client_accept_authentication (const uint8_t *ip_addr) bool netSMTPc_AcceptAuthentication (const NET_ADDR *addr)
Changed function name to new naming convention.
netStatus sntp_get_time (const uint8_t *ip_addr, net_sntp_client_cb_t cb_func) netStatus netSNTPc_GetTime (const NET_ADDR *addr, netSNTPc_cb_t cb_func)
Changed function name to new naming convention.
did not exist netStatus netSNTPc_SetMode (netSNTPc_Mode mode)
New function added.
netStatus snmp_trap (const uint8_t *ip_addr, uint8_t generic, uint8_t specific, const uint16_t *obj_list) netStatus netSNMP_Trap (const NET_ADDR *addr, uint8_t generic, uint8_t specific, const uint16_t *obj_list)
Changed function name to new naming convention.
netStatus snmp_set_community (const char *community) netStatus netSNMP_SetCommunity (const char *community)
Changed function name to new naming convention.
did not exist netStatus netSNMP_SetMIB_Table (const NET_SNMP_MIB_INFO *info, uint32_t num)
New function added.
const char *ip4_ntoa ( const uint8_t *ip4_addr) const char *netIP_ntoa (int16_t addr_type, const uint8_t *ip_addr, char *string_buf, uint32_t buf_len)
Changed function name to new naming convention, new parameters added.
bool ip4_aton (const char *cp, uint8_t *ip4_addr) bool netIP_aton (const char *addr_string, int16_t addr_type, uint8_t *ip_addr)
Changed function name to new naming convention, new parameters added.
const char *mac_ntoa (const uint8_t *mac_addr) const char *netMAC_ntoa (const uint8_t *mac_addr, char *string_buf, uint32_t buf_len)
Changed function name to new naming convention, new parameters added.
bool mac_aton (const char *cp, uint8_t *mac_addr) bool netMAC_aton (const char *mac_string, uint8_t *mac_addr)
Changed function name to new naming convention.