| Electronic Components Datasheet Search |
|
W6100 Datasheet(PDF) 87 Page - WIZnet Co., Ltd |
|
|
|||||||||||||||||||||||||||||
W6100 Datasheet(HTML) 87 Page - WIZnet Co., Ltd |
|
87 / 149 page ![]() W6100 – Hardwired Dual TCP/IP Stack Controller 87/149 LISTEN SOCKET n is listening as ‘TCP SERVER’ by Sn_CR [LISTEN] command. Users can check it by reading Sn_SR (SOCK_LISTEN). { Sn_CR = LISTEN; /* set LISTEN Command */ while(Sn_CR != 0x00); /* wait until LISTEN Command is cleared*/ if(Sn_SR != SOCK_LISTEN) goto OPEN; /* check SOCKET Status */ } ESTABLISHED? ‘TCP SERVER’ remains LISTEN status (Sn_SR=SOCK_LISTEN) until receiving SYN Packet. If ‘TCP SERVER’ receives SYN packet from ‘TCP CLIENT’, it transmits SYN/ACK packet to ‘TCP CLIENT’ and the connection between ‘TCP SERVER’ and ‘TCP CLIENT’ is established if it receives ACK packet. When the connection is established, Sn_IR[CON] interrupt occurs and Sn_SR value is changed to SOCK_ESTABLISHED. And users can read the destination address from the Sn_DIPR or Sn_DIP6R register. First method : { /* check SOCKET Interrupt */ if(Sn_IR[CON] == ‘1’) { Sn_IRCLR[CON] = ‘1’; /* clear SOCKET Interrupt */ goto Received DATA?; /* or goto Send DATA?; */ } // end if else if(Sn_IR[TIMEOUT] == ‘1’) goto Timeout?; /* check destination address */ if(Sn_MR[3:0] == TCP6 Mode) destination_addr[0:15] = Sn_DIP6R; else if(Sn_MR[3:0] == TCP4 Mode) destination_addr[0:3] = Sn_DIPR; } Second method : { |
|
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 |