Forum Discussion
Altera_Forum
Honored Contributor
15 years agoURGENT : Nichestack TCP/IP in NIOS II
I am a beginner in this field. My project is to send and receive real time data from one system to another. A server/client program must run on NIOS II EDS on a startix board and a client/server prog...
Altera_Forum
Honored Contributor
15 years ago@dmpelectronic:
Writing a client socket is not so difficult. First of all you have to read a socket tutorial on the internet. The article that Daixiwen posted is definitely a good start for it. But there also some implementations here in the forum for a client socket. And you can also work with the client code djbmsce posted. There are probably only some header files he forgot to implement. The most important part/difference to server sockets are these lines of code...
clientService.sin_addr.s_addr = inet_addr("127.0.0.1");
clientService.sin_port = htons(55555);
... where you define the ip address you want to connect to and the port which is opened on the server (is this example port 55555). Urmel