Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TCP Server broken in v2.0 #506

Open
nseidle opened this issue Dec 19, 2024 · 1 comment
Open

TCP Server broken in v2.0 #506

nseidle opened this issue Dec 19, 2024 · 1 comment

Comments

@nseidle
Copy link
Member

nseidle commented Dec 19, 2024

Incoming TCP Server requests are marked as connected to IP 0.0.0.0 and immediately closed.

@nseidle
Copy link
Member Author

nseidle commented Dec 19, 2024

I think the problem is here.

NetworkClient client;

// Data structure not in use
// Check for another TCP server client
client = tcpServer->accept();

// Done if no TCP server client found
if (!client)
    break;

// Start processing the new TCP server client connection
tcpServerClient[index] = new NetworkClient;

'client' gets created and then set to accept(). If a client exists, code continues and a new NetworkClient is spun up but is not set to anything.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant