| Electronic Components Datasheet Search |
|
W5300 Datasheet(PDF) 100 Page - WIZnet Co., Ltd |
|
|
|||||||||||||||||||||||||||||
W5300 Datasheet(HTML) 100 Page - WIZnet Co., Ltd |
|
100 / 128 page ![]() © Copyright 2008-2014 WIZnet Co.,Ltd. All rights reserved. 100 ESTABLISHED : Disconnect ? / Disconnecting Process The connection SOCKET should be disconnected when no more data communication is required, or FIN packet is received. { /* set DISCON command */ Sn_CR = DISCON; } ESTABLISHED : CLOSED ? It checks if SOCKETn is disconnected or closed by DISCON or CLOSE command. First method : { i f (Sn_IR(DISCON) == ‘1’) goto CLOSED stage; /* In this case, if the interrupt of SOCKETn is activated, interrupt occurs. Refer to IR, IMR Sn_IMR and Sn_IR. */ } Second method : { if (Sn_SSR == SOCK_CLOSED) goto CLOSED stage; } ESTABLISHED : Timeout Timeout can occur when transmitting the TCP packet such as connect-request(SYN packet) or its response packet(SYN/ACK packet), data(DATA packet) or its response packet(DATA/ACK packet), disconnect-request(FIN packet) or its response packet(FIN/ ACK packet). If above packets are not transmitted during timeout value set in RTR and RCR, TCP Final Timeout(TCPTO) occurs and Sn_SSR is changed to SOCK_CLOSED. TCPTO can be checked as below. First method : { i f (Sn_IR(TIMEOUT bit) == ‘1’) Sn_IR(TIMEOUT)=‘1’; goto CLOSED stage; /* In this case, if the interrupt of SOCKETn is activated, interrupt occurs. Refer to IR, IMR Sn_IMR and Sn_IR. */ } Second method : { if (Sn_SSR == SOCK_CLOSED) goto CLOSED stage; |
|
Link URL |
| Does ALLDATASHEET help your business so far? [ DONATE ] |
About Alldatasheet | Advertisement | Contact us | Privacy Policy | Link to Datasheet | Link Exchange | Manufacturer List All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |