| 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) 94 Page - WIZnet Co., Ltd |
|
|
|||||||||||||||||||||||||||||
W6100 bảng dữ liệu(HTML) 94 Page - WIZnet Co., Ltd |
|
94 / 149 page ![]() W6100 – Hardwired Dual TCP/IP Stack Controller 94/149 while(Sn_CR != 0x00); /* wait until CONNECT or CONNECT6 command is cleared */ goto ESTABLISHED?; } Sn_MR[3:0] = TCP6: { /* set destination IP address, FE80::10D:FC:34A:EF90 */ Sn_DIP6R[0:15] = {0xFE, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 0x01, 0x0D, 0x00, 0xFC, 0x03, 0x4A, 0xEF, 0x90}; /* set destination PORT number, 5000(0x1388) */ Sn_PORTR[0:1] = {0x13, 0x88}; Sn_CR = CONNECT6; /* set CONNECT6 command in TCP6 Mode */ while(Sn_CR != 0x00); /* wait until CONNECT or CONNECT6 command is cleared */ goto ESTABLISHED?; } ESTABLISHED? After transmitting SYN packet, ‘TCP CLIENT’ maintains status SOCK_SYNSENT until receiving SYN/ACK packet from ‘TCP SERVER’. When receiving SYN/ACK packet which is transferred from ‘TCP SERVER’, the connection process between ‘TCP SERVER’ and ‘TCP CLIENT’ is completed. If the connection is completed, Sn_IR[CON] interrupt occurs and Sn_SR is changed to SOCK_ESTABLISHED. Users can know the destination address through the Sn_DIPR or Sn_DIP6R register. Refer to 6.2.1 TCP SERVER : ESTABLISHED? Others flow Refer to 6.2.1 TCP SERVER : ESTABLISHED? 6.2.3 TCP DUAL SOCKET provides TCP Dual (TCPD) mode based on IP version 4 or 6. When the SOCKET that is opened in TCPD Mode operates as 'TCP DUAL SERVER' by Sn_CR [LISTEN], whether it works as TCP4 or TCP6 is determined according to the IP version of connected destination. When operating as 'TCP DUAL CLIENT', whether it operates as TCP4 or TCP6 is determined by Sn_CR[CONNECT] or Sn_CR[CONNECT6]. When the connection is established, the HOST can know whether the SOCKET operates as TCP4 or TCP6 through checking Sn_ESR[TCPM]. |
|
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 |