I've been researching about socket programming, and I have to say I dont have any experience on it. I've been able to study the server/client communication on a Cortex M4 microcontroller, and now I want it to communicate to a Linux computer through an IP socket.
I've seen many examples on socket programming on the internet.
I've worked socket programming in Linux using Gnu compiler and "socket.h" header file.
But I found out that when you want to write socket programs in windows you want to use probably the "winsock*" type libraries.
Indeed, I got confused by this, if you don't mind give me an explanation that how to code socket type programs in windows ?
Hello, I am wanting to learn code and programming but have no idea where to start. I have been looking online and have seen python and linux and host of other programs. I have spent two days reading how-to's and other stuff but now i'm just extremely confused. If anyone can point me in the right direction it would be greatly appreciated.
I am new to socket programming and linux I could find some code about socket programming I want to use this code to connect to a printer , this code is using gethostbyname function which is responsible for getting hostent I think everything is fine except that I have not the host name I just have an IP address (of printer), So what function should I use to connect to the printer by IP ?