Forum Discussion
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