6,480 questions
Advice
1
vote
0
replies
51
views
Designing a host-authoritative multiplayer architecture (similar to Mini Militia)
Body
I’m currently working on a capstone project where we are building a local multiplayer mobile game (Wi-Fi / hotspot based). I designed the following system architecture inspired by the host-...
2
votes
2
answers
100
views
Unity TCP client works on Windows but not on Android (same Wi-Fi network)
What I want to ask is this:
When running the server code in Visual Studio and the client code in Unity on Windows, the server successfully receives responses from the client.
However, when running the ...
Advice
0
votes
4
replies
356
views
What is an MCP server, and what core concepts should an entry-level developer understand?
I’m a beginner trying to understand what an MCP (Model Context Protocol) server is and how it is used in practice.
I’ve read that MCP is used to allow AI models to interact with external tools, data ...
0
votes
0
answers
110
views
Confused about python sockets
I have 2 python programs: 1st one is a tcp server that in while True cycle accepts new clients and handles each of them in a separate thread.
On the client side I have basic functionality and use it ...
2
votes
1
answer
109
views
How can I make my local client-server application communicate on a local socket using docker compose?
I have my client-side code like this where the constant SOCKET_PATH is "/tmp/my_socket":
#define SOCKET_PATH "/tmp/my_socket"
//rest of the code
int main(int argc, char *argv[])
{
...
0
votes
0
answers
430
views
Socket connect() function waits for a long time, how to avoid this? [duplicate]
I am new to socket program and I am facing an issue.
I created a client socket, now I am try to connect to the server using the connect() function. If my server is down or not reachable for some ...
0
votes
0
answers
102
views
Lightweight WebSocket Client-Server for My Java Game – Need Suggestion
I just wrapped up learning Java through theory and tutorials, and now I want to solidify my understanding by building something real.
I’m currently working on a simple two-player arcade-style game ...
0
votes
0
answers
181
views
GET /_next/static/webpack/2ea796388c988d84.webpack.hot-update.json 404 and in 238ms ⚠ Fast Refresh had to perform a full reload
I'm new to next.js and I've struggling with this error for a few days now, I would really appreciate some help. I also got a
"Hydration failed because the server rendered HTML didn't match the ...
0
votes
1
answer
163
views
"Unauthorized" 401 error on making client side upload to Cloudinary
I wanted to use Cloudinary's API to upload images from the client side for my project.
This is an example from Cloudinary's docs to make signed requests from client side: Link to project.
The project ...
2
votes
1
answer
169
views
How do I call async_write multiple times and send data to the server? (boost::asio)
This is the template I'm using:
I got it from github here: https://github.com/boostorg/beast/blob/develop/example/websocket/client/async/websocket_client_async.cpp
class session : public std::...
1
vote
1
answer
102
views
TCP client hangs waiting for data after server calls shutdown() and close() (Boost.Asio) [closed]
Scenario: a server (asio with C++20 coroutines) sending a fixed amount of data (100 * 4KiB) in a loop, after a connection was established to a client.
After this, the server should close the ...
0
votes
1
answer
199
views
Need help to fix communication using GRPC - between client and server
I'm trying to establish connection between client and server using grpc. I'm doing the .proto file approach. I have couple of questions on this.
Does grpc only have to run with HTTPS?
Doeschat.proto ...
0
votes
2
answers
89
views
Socket.IO: No acknowledgment received from client after server emits event
I am using Socket.IO to emit an event from the server to a specific client. The event is being successfully received on the client side, and the client processes the data without any errors. However, ...
1
vote
0
answers
219
views
Having a problem with async_cancel_goal with ROS2 and C++
I am writing an action with ROS2 and it should be canceled when the condition is met. I am checking that in client in feedback_callback:
void feedback_callback(
GoalHandleRecord::SharedPtr,
...
1
vote
1
answer
197
views
How to do RSA Encryption in Python using PyCryptodome
I am new to the world of encryption and I was wondering if my solution for encrypting/decrypting data is okay.
When creating this, I referenced the API documentation from PyCryptodome: https://...