Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
20 years ago

Lwip standalone server

Hello to all,

The Lwip_web_server example has the main in lwip_web_server.c

at the and of this there is a while cycle what does it do?

What does lan91c111if_service(&netif) function do?

2 Replies

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    --- Quote Start ---

    originally posted by bigmickey@Sep 28 2005, 05:09 AM

    at the and of this there is a while cycle what does it do? <div align='right'><{post_snapback}> (index.php?act=findpost&pid=10008)

    --- quote end ---

    --- Quote End ---

    That&#39;s your main loop.

    --- Quote Start ---

    originally posted by bigmickey@Sep 28 2005, 05:09 AM

    what does lan91c111if_service(&netif) function do?

    --- Quote End ---

    That services the Ethernet chip so you can send and receive stuff.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Thank you 4 reply.

    Now... if i have one server i usually see something similar

    -new scoket

    -bind

    -listen

    begin cycle

    -accept

    -receive

    -send

    end cycle

    in this case i have 2 o 3 servers how does it work with only a cycle in which there&#39;s

    a generic lanservice()?

    thank you in advance