How to host C++ server to connect to then connect to it.

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By toivocat

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.

:bust_in_silhouette: Reply From: krunkerio

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.

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

toivocat | 2022-04-23 20:50

:bust_in_silhouette: Reply From: ParagonJackets

I had to use it but stopped using it a while ago, but because reading this review, I will start using it again, therefore with this pleasure, I will recommend this resident evil 4 leon jacket.