Nios® V/II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® V/II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++
12626 Discussions

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

Honored Contributor II

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!!! 


0 Kudos
1 Reply
Honored Contributor II

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
0 Kudos