ВходНаше всё Теги codebook 无线电组件 Поиск Опросы Закон Пятница
19 апреля
335880 Топик полностью
AD (18.06.2012 16:44, просмотров: 160) ответил FDA на Устройство на базе ENC28J60 должно передавать большую страницу. Внутренней памяти контроллера не хватает для хранения её целиком. Как правильно разбить её на части? Понимаю, что нужно рыть в сторону HTTP протокола, но что-то ничего толкового особо
Этот TCP/IP стек упрощен до предела We will send less than 100 bytes including all the html tags. How many IP packets with data will be sent for such a page? Just one! The whole point of using TCP is that one can send more than one packet of data but we don't need that functionality. We need TCP only because HTTP is based on it and we want HTTP in order to use our web browser. Under the assumption that you will never need to send more than one packet with data the whole TCP protocol and state handling can be simplified a lot. We can e.g send the FIN immediately together with the data. This makes the state handling for the closing of the connection very simple. Это называется не "написан практически", а реализовано не больше четверти необходимого.