I don't even know where to start with this exercise lol.
I have to create a client-server messaging program.
I've included the winsock.h header file and have got this statement: socket(PF_INET, SOCK_STREAM, 0), can't work out how to declare a socket though I've missed so much. I'd have thought it would be something like "socket sock; sock = socket(PF_INET, SOCK_STREAM, 0);" but the compiler doesn't seem to like that. Any suggestions?
I have to create a client-server messaging program.
I've included the winsock.h header file and have got this statement: socket(PF_INET, SOCK_STREAM, 0), can't work out how to declare a socket though I've missed so much. I'd have thought it would be something like "socket sock; sock = socket(PF_INET, SOCK_STREAM, 0);" but the compiler doesn't seem to like that. Any suggestions?