On Time RTOS-32 Documentation
Welcome
RTTarget-32
RTKernel-32
RTFiles-32
RTIP-32
RTIP-32 Programming Manual
RTIP-32 Reference Manual
RTIP-32 Configuration
Socket API
Simplified Networking API
Extended RTIP-32 API
Function vf_init
Function xn_add_dns_server
Function xn_add_host_table_entry
Function xn_clear_host_cache
Function xn_delete_host_table_entry
Function xn_get_domain_name
Function xn_has_dns
Function xn_set_domain_name
Function xn_set_server_list
Function xn_name2ip_addr
Function xn_abort
Function xn_arp_send
Function xn_attach
Function xn_bootp_res
Function xn_bootp
Function xn_debug_error
Function xn_getlasterror
Function xn_geterror_string
Function xn_interface_close
Function xn_interface_info
Function xn_interface_mcast
Function xn_interface_open
Function xn_interface_open_config
Function xn_interface_opt
Function xn_interface_ethernet_statistics
Function xn_interface_statistics
Function xn_ip_set_option
Function xn_ping
Function xn_pkt_data_max
Function xn_rarp
Function xn_rt_add
Function xn_rt_cycle_gw
Function xn_rt_del
Function xn_rt_replace
Function xn_rtip_exit
Function xn_rtip_init
Function xn_rtip_restart
Function xn_set_ip
Function xn_tcp_is_connect
Function xn_tcp_is_read
Function xn_tcp_is_write
Function xn_wait_tcp_output
Function xn_autoanswer
Function xn_autologin
Function xn_hangup
Function xn_scriptlogin
Function xn_autoip
Function xn_ioacc_init
Function xn_nat_init
Function xn_arp_add
Function xn_arp_del
Function xn_arp_remote
Function xn_arp_cache_lookup
Function xn_send_ethernet_frame
Function xn_callbacks
Function cb_wr_screen_string_fnc
Function cb_rs232_connection_lost_fnc
Function cb_error_report_fnc
Function cb_raw_mode_in_char_fnc
Function cb_autoip_new_ip_fnc
Function cb_autoip_no_ip_fnc
Function cb_packetin_isr
Function cb_packetin_task
Function cb_packetout
PPP
DHCP Client
DHCP Server
FTP Client
FTP Server
TFTP Client
TFTP Server
Telnet Client
Telnet Server
Web Server
SNMP Client
POP3 Client
SMTP Client
SNTP Client
SMB Server
SMB Client
SMB3 Server
SMB3 Client
WLAN Driver
Error Codes
RTPEG-32
RTUSB-32
|
Function cb_error_report_fnc
Callback function to write an error message to the screen.
int cb_error_report_fnc(SOCKET s, int reason, int subreason);
ParameterssSocket on which the error occurred.
reasonOne of the following values.
Value |
Meaning |
TCP_RETRANS |
Excessive retransmissions. |
TCP_CONNECTION_CLOSING |
FIN received from other side. |
ICMP_QUENCH |
ICMP quench message received. |
ICMP_UNREACH |
ICMP unreachable message received. |
ICMP_TIME_EXCEEDED |
ICMP time exceeded message received. |
ICMP_PARAM_PROBLEM |
ICMP parameter problem message received. |
subreasonIf reasons is one of the ICMP_... values, subreason has one of these values:
Value |
Meaning |
ICMP_C_FRAG |
Fragmentation needed and DF is set. |
ICMP_C_HOSTISS |
Source host isolated. |
ICMP_C_HOSTPROH |
Destination host administratively prohibited. |
ICMP_C_HOSTTOS |
Host unreachable for TOS. |
ICMP_C_HOSTUK |
Destination host unknown. |
ICMP_C_HOSTUR |
Host unreachable. |
ICMP_C_NETPROH |
Destination net administratively prohibited. |
ICMP_C_NETTOS |
Net unreachable for TOS. |
ICMP_C_NETUK |
Destination network unknown. |
ICMP_C_PROTUR |
Protocol unreachable. |
ICMP_C_SOURCE_QUENCH |
Source quench. |
ICMP_C_SRCROUTE |
Bad source route. |
ICMP_C_TEXP_FRAG |
Reassembly timeout. |
ICMP_C_TEXP_TTL |
Time exceeded. |
ICMP_P_IPCHKSUM |
IP checksum error. |
ICMP_P_TCPCHKSUM |
TCP checksum error. |
ICMP_P_TCPSEQ |
TCP sequence not in window. |
ICMP_P_UDPCHKSUM |
UDP checksum error. |
cb_error_report_fnc is called by RTIP-32 to display error messages. It is called through function pointer rtip_callbacks->cb_error_report_fnc. An application can modify this pointer to point to an arbitrary function or NULL to suppress any error output. By default, cb_error_report_fnc calls rtip_callbacks->cb_wr_screen_string_fnc and ignores reason TCP_CONNECTION_CLOSING.
Extended RTIP-32 API
Function cb_rs232_connection_lost_fnc
Function cb_raw_mode_in_char_fnc
|