Skip to main content

Questions tagged [socket]

For code which uses the Berkley Sockets API (specified by POSIX, and available on Windows too) to communicate with other processes using a network protocol.

11 votes
4 answers
1k views

I am reading "The Linux Programming Interface" by Michael Kerrisk. I'm studying about sockets, and I made a simple application using sockets on the unix domain. I want to know if I'm using ...
Super Tux's user avatar
  • 313
10 votes
2 answers
1k views

Description For fun, and to learn some C++, I've decided to reimplement the entirety of EVE online as I remember it. (I'm aware this is an insane and likely unreachable goal, that's intentional). I'...
Adam Barnes's user avatar
2 votes
1 answer
107 views

I am developing a system in C for a device running Yocto Linux (Posix compatible, libc, etc.) on a microprocessor. The Yocto build is "quite generalized", as it's supposed to run several ...
Magnus Gjerstad's user avatar
8 votes
2 answers
1k views

The TCP server in the code snippet below is designed to: Read data using one thread while writing data with another thread. Allow only one client to be connected at a time. Automatically close the ...
John's user avatar
  • 469
7 votes
3 answers
2k views

I’ve done port scanner program. It works well and accurate, but there is a problem. It’s SUPER slow. That’s how it looks: ...
Eudziro's user avatar
  • 81
4 votes
1 answer
152 views

Code ...
Dang Quang Vinh's user avatar
8 votes
3 answers
737 views

Background: I am in earlier stages of implementing a standard on top of an existing 'backend' This standard requires that I send data in UDP packets of a size specified at runtime All packets must be ...
Douglas B's user avatar
  • 181
0 votes
1 answer
159 views

I'm developing a client-server game application in Python. Here's the scenario: Clients connect to the server and register. After registration, all clients see a main menu. One client can initiate a ...
wallyyopp's user avatar
1 vote
2 answers
1k views

I've been working on implementing a multi-client socket communication system with a thread pool in C++. The system comprises three main components: logger.h, socket.h, and thread.h, which handle ...
user avatar
3 votes
0 answers
223 views

From code review: OO simple network time server with changes from a previous code inspection and added Windows support I made many changes as per the review comments. The code has been significantly ...
arcomber's user avatar
  • 2,531
3 votes
1 answer
156 views

Summary This is my core networking code for the lockstep RTS game that I am creating. Clients connect to a relay server via a TCP socket, and any packets sent to the relay server are forwarded to all ...
Dan's user avatar
  • 361
5 votes
1 answer
517 views

I put up my SNTP Server code for review here: SNTPv4 server based on rfc 4330 in C++ a fortnight ago and since then I have made changes as per code review comments and also added support for Windows, ...
arcomber's user avatar
  • 2,531
6 votes
1 answer
220 views

Please review my SNTPv4 server based on rfc 4330 I tested running 3 instances of ntp-check.exe from Galleon systems and 1 instance of Microsoft w32tm - w32tm /stripchart /computer: No crash! This is a ...
arcomber's user avatar
  • 2,531
10 votes
5 answers
979 views

This is a follow up to: struct sockaddr_storage initialization by network format string First of all thanks to @Haris, @Toby Speight, @G. Sliepen and @chux - Reinstate for their help. I learned a lot ...
mortytheshorty's user avatar
8 votes
3 answers
1k views

I am writing a wrapper library for network functionality in C and wanted to let the user let the user initialize a struct sockaddr_storage with a format string. Format ist like: "proto:host:port/...
mortytheshorty's user avatar

15 30 50 per page
1
2 3 4 5
22