Reputation: 1753
I've been trying to use the socket() api in C but no luck so far. I would like to send a request to a specific device (Address: 192.168.2.55 Port: 12850) which will then return data to the application. How do I do this in C. I'm on a Mac so "the Unix way" if that differs from Windows...
Thanks and merry christmas!
Upvotes: 0
Views: 4998
Reputation: 4555
The steps involved in establishing a socket on the client side are as follows:
The steps involved in establishing a socket on the server side are as follows:
Check to see if you have followed these steps thusfar with the code you have written.
Upvotes: 1
Reputation: 4464
For socket programming introduction, see http://beej.us/guide/bgnet/
Upvotes: 2