![]() ThrowRuntimeError("Invalid argument count") Ssize_t recvd = recv(sock, pdata, size, 0) Ssize_t sent = send(sock, pdata, size, 0) Void throwRuntimeError(const char *msg, int err) While (isdigit(guess) || islower(guess)) I tried to fix it but it either segfaults or gives me a "send: Socket operation on non-socket" error. When I run it there, after I enter a player's name, it segfaluts. This code compiles and works fine on my mac machine when I run it through VS Code and Terminal, but it doesn't work on my school's network that they use for grading. I am implementing a hangman game and trying to send some data to the server.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |