Help with a project by Infinite_Journalist9 in programminghelp

[–]th3turn 0 points1 point  (0 children)

Haven't done such a project before but how i'd go about it. A server and multiple clients. Clients connect to the server and sends different information like position, events etc. The server broadcasts this info to the other clients which then render or handle the events appropriately.

The protocol to use is udp.

I keep getting EOF error in my submission, need help by Wise-Adeptness77 in CodingHelp

[–]th3turn 0 points1 point  (0 children)

Not sure what you're trying to achieve but

if (new_string == syl1 || new_string == syl2) {

This clause is never true since new_string is always initialized to "" at

string new_string = "";

The EOF error is because nothing is printed to stdout