Intel® Quartus® Prime Software
Intel® Quartus® Prime Design Software, Design Entry, Synthesis, Simulation, Verification, Timing Analysis, System Design (Platform Designer, formerly Qsys)
17249 Discussions

Nichestack TCP/IP for client server program in NIOS II EDS

Altera_Forum
Honored Contributor II
1,586 Views

Can some please help me in writing a program for server and client on nios II EDS using Nichestack TCP/IP. I want to communicate between two pc's using a altera startix board on one computer by an ethernet cable.Nios II eds has "simple socket server" example provided by altera. Using that i want to create my own program which will enable me to transfer data from one pc which will act as server and another pc which will act as client.

0 Kudos
3 Replies
Altera_Forum
Honored Contributor II
521 Views

the bsd sockets (http://en.wikipedia.org/wiki/bsd_socket) wikipedia page shows examples on how to use the sockets API to communicate, both on TCP and UDP sockets.

0 Kudos
Altera_Forum
Honored Contributor II
521 Views

The winsock API is almost the same than the BSD socket API so you shouldn't have any problem porting your code to the Nios system.

0 Kudos
Altera_Forum
Honored Contributor II
521 Views

Hi djbmsce, 

Check this link http://www.alterawiki.com/wiki/web_server_with_ajax_progress_bar 

 

Here you can find a good webserver example that utilize both way communication (server to client and client to server)
0 Kudos
Reply