| công cụ tìm kiếm bảng dữ liệu linh kiện điện tử |
|
W6100 bảng dữ liệu(PDF) 87 Page - WIZnet Co., Ltd |
|
|
|||||||||||||||||||||||||||||
W6100 bảng dữ liệu(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 |
| Cho đến nay ALLDATASHEET có giúp ích cho doanh nghiệp của bạn hay không? [ DONATE ] |
Alldatasheet là | Quảng cáo | Liên lạc với chúng tôi | Chính sách bảo mật | Liên kết đến bảng dữ liệu | Trao đổi link | Tìm kiếm theo nhà sản xuất 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 |