Forum Discussion

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

How to implement TCP/IP Client basing on NiosII? ---SSS works

Hello, does somebody know how to implement TCP/IP Client basing on NiosII?

I have DE2-115 Kit, and it works with simple socket server as a server(of course:p)

Thanks in advance!!!

1 Reply

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

    I never tried it with Nios, but I guess you can do it like on other common systems.

    First of all replace the bind() and listen() calls with connect(); then replace recv() with send() and change the code flow according to the client perspective.

    I think you can use the select() as well to callback the event handler functions