Questions tagged [sockets]
a data structure that provides access to inter-process communication. For the past 40 years, this basically means network communication.
136 questions
1
vote
2
answers
149
views
Should I introduce a controller layer to separate networking from game/player logic in a C server project?
I’m writing a multiplayer server in C using sockets and pthreads.
The project is separated by responsibility:
server.c/.h → networking (socket, bind, listen, accept, thread creation)
player.c/.h → ...
1
vote
1
answer
1k
views
Linux poll with a thread pool and multiple events
I am working on a simple client server program in C in which multiple clients will be connected to a single server.
Clients will submit operations/actions to the server and the server will process ...
1
vote
1
answer
180
views
Is it more secure to develop libraries in-house than using existing libraries? [closed]
I (unfortunately) work in a large German corporation, in a department where the codebase is up to 20 years old, written in C++ (actually more like C with the occasional classes, since most developers ...
2
votes
1
answer
408
views
Socket Class Design C++
I am currently trying to design some C++ classes that encapsulate POSIX sockets and their relevant functions. I want to try and design classes that are simple, elegant, and make the best use of design ...
0
votes
0
answers
1k
views
How inter-process communication is handled on .NET Core?
I have to implement a bi-directional communication between two local process with support to backward compatibility .NET Core/NET Framework and platform architecture x86/x64.
The options that i have ...
0
votes
0
answers
244
views
Deployment of two programs that communicate between them
On windows, I have done one client in c++ and one server in python. In order to make the program work, I need first to run the server (in one terminal), and then I can run the client.
I am trying to ...
-2
votes
2
answers
13k
views
What are the possible *root causes* of a SocketTimeoutException?
I understand that a SocketTimeoutException (I'm in Java, but I guess it's the same in just about every major language) happens after a server or client doesn't respond after a period of time, let say ...
0
votes
1
answer
130
views
How best to structure this MVC or Razor Pages web application given a required tcp/ip server data source that acts like a web api?
I am rewriting an old asp.net 4.0 web forms website that exposes an application's data and logic to the web. I am moving this to a .net core mvc or razor page project. The website has minimal ...
4
votes
0
answers
1k
views
Is there a conventional URI scheme for local sockets (AF_UNIX)?
I'm looking at creating a class which accepts a string to define a Unix socket address.
Linux supports three types of addresses for Unix sockets:
File based addresses (also called named domain ...
0
votes
1
answer
1k
views
Asynchronous Server in C++
We are looking to develop an asynchronous server in C++. We are coming from C#, which has built-in support for async-await networking. However, with C++ it appears as if it is basically mandatory to ...
1
vote
1
answer
301
views
How should I handle dealing with a stream of incoming data?
I'm creating a NodeJS application that receives a ton of incoming financial data (prices) through Websockets, like anywhere from 1 to 5 data points per second which I would then like to send to the ...
-6
votes
1
answer
2k
views
What are services and interfaces of a layer in a computer network model? [closed]
In Tanenbaum's Computer Networks book
Three concepts are central to the OSI model:
Services.
Interfaces.
Protocols.
Probably the biggest contribution of the OSI model is that it makes
the ...
-1
votes
1
answer
63
views
How to check whether module or class is network interface, socket?
Background
Simplifying, assume I want to write some tool for code-analysis, which tell me which files - class/module - are/have some kind of network interface(s). No matter if it's REST Controller, ...
-4
votes
2
answers
98
views
How do browsers isolate traffic within a single tab?
I know that browsers use a separate port for each tab. However, in each tab, there might be multiple scripts doing data transfer over the network. How does a browser makes sure that the data is ...
2
votes
2
answers
2k
views
Chat part of application - using UDP or TCP?
I'm trying to build a section of my app where two users can message each other. I've read about TCP and UDP and it seems like TCP is more suited due to ordered packet delivery. However, TCP requires a ...