Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [server]

A software application that services requests from clients using a data transfer protocol.

13
votes
3answers
2k views

Simple HTTP Server

I'm working on a project (studying) and I have a lot of time for proof of concepts and write something from scratch. Basically I'm creating an HTTP server (simple, but not too simple) in C++ using ...
4
votes
0answers
44 views

Basic Python HTTP Server

It's an extremely simply HTTP server in Python using the socket library, and a few others to get the MIME type, etc... I've also avoided the ../../ vulnerability, ...
1
vote
0answers
18 views

client handling of tcp server in go

I'm writing a service for a ORPG and I expect traffic of about 10kb of packets per second from multiple clients. I just want to know if my approach is correct? Are there areas I can improve? This is ...
2
votes
1answer
43 views

Multithreaded local server

I'm writing several local servers which have almost the same code in main.cpp. Appreciate your comments, improvement suggestions and especially notes on potential ...
1
vote
0answers
64 views

Simple Go Linux daemon to send/receive gob-encoded data on a socket

I'm currently working on a linux daemon and would like some feedback. The program is a simple unix socket server that sends around gob encoded messages. I'm still getting the hang of concurrency in go ...
2
votes
0answers
45 views

Web server using syscalls in Go

I'm new to Go and wanted to implement a web server using system calls to get a better feel for how everything works. I'm looking for feedback on idiomatic go especially error handling and using ...
8
votes
1answer
596 views

TCP client and server API

I made a server and client API for TCP connection. It is intended to shorten the work you need to do to prepare the server and client. It's separated into 3 projects - ...
1
vote
0answers
27 views

Back-end web framework with sockets

I recently became interested in back end web frameworks in python, but I didn't want to use django or flask. (I want to make something similar to django or flask) So I decided to make my own. This is ...
4
votes
0answers
41 views

Python UDP server to relay CSV or JSON data to cloud for analysis

What am I doing? UDP/TCP server in Python (2.7 / 3.7) How am I doing? Using threads Where am I going to execute it? In a virtual machine running linux in AWS or Google Cloud or Azure () ...
0
votes
0answers
86 views

HttpListener Server for building reports in Excel

I have coded a web-based Excel file builder and sender, that serves the file over Http(example links in code). I would like to see improvements and any suggestions you might have. ...
3
votes
1answer
27 views

Go API server - request handlers becoming excessively long

I'm developing a API server in Go. My route handlers are becoming excessively long, especially when the response needs a lot of information. For the following response type: ...
1
vote
1answer
99 views

C++ game server

I'm writing a server for an MMO game using boost::asio. I would like to know, are there any design or other issues in my code? And what should I improve in it? Thanks in advance. BaseServer.h: ...
2
votes
2answers
259 views

Simple multithreaded chat server in Rust

I'm trying to develop a simple Rust chat server. I'm not a Rust expert and come from Java and Kotlin. This same server in Kotlin is: ...
4
votes
0answers
49 views

Socket client-server app for exchanging sine-wave points

I wanted to try C# network programming and wrote this simple client/server application. The idea is - many clients can connect to server and request some data. As an example they request a set of ...
1
vote
0answers
26 views
1
vote
0answers
34 views

Unity Multiplayer Authoritarian Client-Server

I have created a client-server system which handles multiplayer for a game I've been making with Unity. Problem is, it feels very clunky and complex and I want to know how the design could be ...
0
votes
1answer
66 views

Game Server application

I'm trying to write game server core that I can easy extend to use for various games. From simple online Blackjack session, to MMORPG. Long story short, I came up with this solution: Firstly, we have ...
4
votes
1answer
460 views

Multiple client TCP stream reader

My server code is currently reading String data over a TCP connection form 2 different client computers. To do this I am duplicating the ...
1
vote
1answer
49 views

Haskell game server auth: cookie key generate&check

C++ code version (description copied from it) gameKeys id is authentication function of an MMO game server. When someone wants to play with friends, he sends ...
4
votes
2answers
95 views

Game server auth: cookie key generate&check

UPD: Haskell version, please check it too. gameKey(long id) is authentication function of an MMO game server. When someone wants to play with friends, he sends ...
3
votes
2answers
184 views

Basic web server in Python 3

This project is intended to function as a basic web server with a command-line interface for easy use. It's written in Python 3, with the help of the cmd module for ...
1
vote
1answer
68 views

HTML file with a submit form

I have an HTML file that contains a submit form, which asks the users the fill in their personal info: then it will post and store into the DB by method of PHP SQL: ...
14
votes
1answer
2k views

Event Based TCP Library

A while ago, I wanted to make a multiplayer game, so I wrote some TCPClient and TCPListener code, and it worked, but it was ...
3
votes
1answer
2k views

Simple server using async and HttpListener

I have a program that controls a custom machine. I wanted to add some simple HTTP comms so I could control it from the network or other programs. My server class is: ...
0
votes
1answer
122 views

Queue manager. Multithreading management implementation

I want to write small server that has one thread that pushes some jobs into queue and several threads that pull the jobs and process it somehow. I wrote (of course no, I found an example) of blocking ...
2
votes
0answers
79 views

A Node.js server that create a tunnel to the Internet

I'm creating a Node.js app that allows the user to create their own social network. This code doesn't do anything special yet except creating a basic server and making it available on the Internet via ...
4
votes
1answer
72 views

Basic multithread server code

I wrote a simple multithread server to use as a base class for other different types of multithread servers. I haven't had a lot of opportunities to get code critique from other people, so I wanted to ...
0
votes
1answer
65 views

First Time Programming Sockets

The following code was my first attempt at creating and manipulating socket variables. I compiled and ran the code through cmd. What are the most common ways to organize methods in both a server and ...
1
vote
0answers
81 views

Server Client in socket c

This is a lib I am doing to interact with sockets. :) Here is the main file: ...
3
votes
1answer
136 views

Game Packet System

Usually I'll have around 200 packets, but for the purpose of this question I've only include 1 packet in the code, the rest is the same principle as if there was still 200. Here is a packet system, ...
3
votes
1answer
1k views

UDP Chat Program with Server, Client and Listener (Feedback)

This is a little chat program that I have been working on and I want general feedback such as feature suggestions, efficiency comments, etc... The server will setup a DGRAM socket and constantly ...
1
vote
1answer
34 views

Four-lines script to make an immediate DB and document root zip backup

What do you think of my script to make an immediate DB and document root zip backup? Any flaw you might find. Please inform me of it: ...
5
votes
1answer
171 views

Go web application with a mock user repository

I'm new to go and struggling to create structure of web application. I read about clean architecture and Ben Johnsons blog post about package layout. Now i want to put it all together. This is just ...
2
votes
2answers
284 views

Backup document root and MySQL in Linux

I wrote this program to backup everything in document root and the MySQL database in Linux environments. It is aimed for Debian/Ubuntu environments to say the least. ...
2
votes
1answer
90 views

Nix cron daily and weekly scripts for a minimal Nginx server environment

I've created the following Nix cron for daily and weekly scripts for a minimal Nginx server environment (as part of my larger script). The daily cronjob updates WordPress and brings back original ...
4
votes
0answers
205 views

WSL LAMP stack script

The following code is aimed to establish a WSL based LAMP environment. This is instead XAMPP or WAMPP based LAMP environment which doesn't allow Bash. The script includes a cat heredocument called "...
1
vote
0answers
767 views

Winsock chat server and client application

I have made a C++ command line chat with server and clients as a hobby project. Here is the GitHub link. ...
1
vote
1answer
2k views

Multi-client TCP server with a thread for each client and DB connection pool

I'm creating a Qt TCP (with SSL) server to which multiple clients should connect and use the DB, and this is the main task. So, I think I can use this architecture: each client has its own thread, and ...
6
votes
2answers
1k views

Networked Chat App in Python

I'm a highschool student with a passion for Python, and this is my first try at networking. GitHub server.py ...
1
vote
0answers
428 views

Socket server with consumer-producer design to handle concurrent connections

The usual way is to implement socket server to handle concurrent requests by creating new thread for each request. Instead of this approach i tried to create a server using ...
7
votes
1answer
149 views

Four to One Game Server

The two player game four-to-one works by leaving four stones on a table. Each player may remove 2 or 1 stones from the table. The first player who cannot take away any stones loses. I created a web ...
4
votes
0answers
74 views

Message Save and Search REST server

This is an assignment presented to me. I don't have much experience building servers in Python so any comments would help me improve. The point of the server is to save and retrieve messages in a ...
3
votes
1answer
66 views

Server-side implementation for a chip-capturing board game

I am currently coding a game in C++ with a network connection. The game consists of two players on a game-board who compete for capturing chips. I am aware that this program is a little bit useless ...
3
votes
0answers
78 views

Live radio streamer

I've posted a repo on a live radio streamer much like shoutcast/icecast without admin panels / user panels or custom mounts. I was wondering if anyone could review it and tell me what I can do better ...
1
vote
0answers
78 views

Working with abstract classes and multiply servers with TX and RX interchange

I have different servers (TCP, Named Pipe, RS232, ...) in one program and I want that all the received data coming from one server are send to all the other servers (resp. clients of these servers) ...
-3
votes
1answer
158 views

Document Management Properties and Searching

This is the 'middle-ware' for a document management application. A document has properties which describe it, and allow users to search for it. The server will interact with the database, and the User-...
1
vote
0answers
25 views

Parsing server request data for visualization in C3.js

The following is a snippet from a script I have that fetches a list of objects representing requests to a server and graphs them using C3.js. I've only included the relevant code that parses the list ...
3
votes
1answer
100 views

API Implementation and Architecture

I recently put together an Express/Node API that consumes and transforms an additional third party API. And while everything is working great, I feel there may be ways to improve the architecture ...
8
votes
2answers
271 views

Client Server Stocks application

I was given task to build a client server application, using any technology I want. Here are the requirements To simplify the process the Server would have an in memory stock list and there would be ...
3
votes
0answers
33 views

Nisse Server: Part 5 Handler

Getting close to a release of generic server. Nisse Server: Part 1 Helper Functions Nisse Server: Part 2 Socket Layer Nisse Server: Part 3 Stream Layer Nisse Server: Part 4 Server As I mentioned ...