0 votes

I was wondering, how can I make a c++ server on replit to connect to godot? For extra I need to connect to that server FROM Godot with GDScript. So far I have no code. Tell me if I'm running low on details.

Godot version 3.4.2
in Engine by (81 points)

1 Answer

0 votes

Hello. You can follow these steps:
- Create a socket with the socket() system call.
- Bind the socket to an address using the bind() system call.
- Listen for connections with the listen() system call.
- Accept a connection with the accept() system call.
- Send and receive data.
Krunker

by (14 points)
edited by

Now how exactly do I do this? That was the main part of the question. I don't really have any experience with C++?

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.