Page 4
RS9113 WiSeConnectTM
Simple API Guide
Version 1.4
4.2 BSD Socket API ....................................................................................................... 75
4.2.1 rsi_config_ipaddress ............................................................................................................. 75
4.2.2 rsi_socket .............................................................................................................................. 77
4.2.3 rsi_bind ................................................................................................................................. 78
4.2.4 rsi_connect ........................................................................................................................... 78
4.2.5 rsi_listen ............................................................................................................................... 79
4.2.6 rsi_accept.............................................................................................................................. 80
4.2.7 rsi_recvfrom ......................................................................................................................... 81
4.2.8 rsi_recv ................................................................................................................................. 82
4.2.9 rsi_sendto ............................................................................................................................. 82
4.2.10 rsi_send ................................................................................................................................ 83
4.2.11 rsi_shutdown ........................................................................................................................ 84
4.2.12 rsi_socket_async ................................................................................................................... 85
4.2.13 rsi_dns_req ........................................................................................................................... 86
4.2.14 rsi_dns_update ..................................................................................................................... 87
4.3 Network Application Protocol ................................................................................. 88
4.3.1 SMTP client API ..................................................................................................................... 89
4.3.1.1 rsi_smtp_client_create ..................................................................................................... 89
4.3.1.2 rsi_smtp_client_mail_send_async .................................................................................... 90
4.3.1.3 rsi_smtp_client_delete_async .......................................................................................... 92
4.3.2 SNTP Client API ..................................................................................................................... 93
4.3.2.1 rsi_ sntp_client_create_async .......................................................................................... 93
4.3.2.2 rsi_sntp_client_gettime .................................................................................................... 94
4.3.2.3 rsi_sntp_ client_gettime_date .......................................................................................... 95
4.3.2.4 rsi_ sntp_client_server_info ............................................................................................. 95
4.3.2.5 rsi_ sntp_client_delete_async .......................................................................................... 96
4.3.3 HTTP Client API ..................................................................................................................... 97
4.3.3.1 rsi_http_client_get_async ................................................................................................ 97
4.3.3.2 rsi_http_client_post_async............................................................................................... 99
4.3.3.3 rsi_http_client_post_data .............................................................................................. 101
4.3.3.4 rsi_http_client_async...................................................................................................... 103
4.3.3.5 rsi_http_client_put_create ............................................................................................. 105
4.3.3.6 rsi_http_client_put_start ................................................................................................ 106
4.3.3.7 rsi_http_client_put_pkt .................................................................................................. 108
4.3.3.8 rsi_http_client_put_delete ............................................................................................. 109
4.3.3.9 rsi_http_client_abort ...................................................................................................... 109
4.3.4 POP3 client API ................................................................................................................... 110
4.3.4.1 rsi_pop3_session_create_async ..................................................................................... 110
4.3.4.2 rsi_pop3_get_mail_stats ................................................................................................ 112
4.3.4.3 rsi_pop3_get_mail_list ................................................................................................... 112
4.3.4.4 rsi_ pop3_retrive_mail ................................................................................................... 113
4.3.4.5 rsi_pop3_mark_mail ....................................................................................................... 113
4.3.4.6 rsi_pop3_unmark_mail ................................................................................................... 114
4.3.4.7 rsi_ pop3_get_server_status .......................................................................................... 114
4.3.4.8 rsi_pop3_session_delete ................................................................................................ 115
4.3.5 FTP Client API ...................................................................................................................... 115
4.3.5.1 rsi_ftp_connect ............................................................................................................... 115
4.3.5.2 rsi_ftp_disconnect .......................................................................................................... 116
4.3.5.3 rsi_ftp_file_write ............................................................................................................ 117
4.3.5.4 rsi_ftp_file_write_content .............................................................................................. 118
4.3.5.5 rsi_ftp_file_read_async .................................................................................................. 119