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

learn more… | top users | synonyms

2
votes
1answer
50 views

Beginnings of Go web server with mongoDb

I am just learning how to use go and I'm a bit confused on how my code is supposed to be organised package wise. Am I right to have the user package? I'm planning ...
3
votes
0answers
49 views

Gracefully shutting down a HttpListener

I have worked out a code for graceful shutdown of a httplistener. However, I am not sure if its foolproof. Below I provide c# code and the powershell (v3.0) scripts I've used to run my tests... C# ...
6
votes
1answer
79 views

Server-client data transfer

I coded a server-client (kind of) chat, and I need your review as I'm sure it is a mess. I used lots of tutorials and tips form different websites and forums which were posted at different times (...
3
votes
0answers
78 views

Minimal Async Web Server in Rebol 2

I'm building a rudimentary web server in Rebol 2. I'm trying in particular to understand the flow and logic behind the asynchronous aspects of the TCP scheme. As far as I can understand it, you ...
5
votes
1answer
43 views

Strip a newline and add more text to a Go bytes.Buffer

I wrote a little timer middleware to append the request duration to the end of the log message returned by the excellent Gorilla Toolkit's CombinedLoggingHandler ...
1
vote
1answer
30 views

MUD Telnet game

I'm new in JS and my daily job is PHP, so I decided to do simple MUD Telnet game to practice my JS skills. The idea was to use async/await to do Telnet server code that seems synchronous at first ...
2
votes
0answers
132 views

Node Server Pages

I wrote a small script that lets you run node.js inside .html files (the same as PHP). CGI-Node already does this, but uses CGI rather than FastCGI, which doesn't work with Nginx. Here's my code (...
1
vote
0answers
32 views

Arduino sketch running on Arduino Mega as a web server

I have Arduino Mega with Ethernet shield mounted on top running as a web server. It reads temperature, humidity, rain or not and pot soil moisture and then displays on web page. Can you please review ...
2
votes
1answer
85 views

Implementation of an asynchronous UDP server Listener

I have written this code in C# and have tested this code to ensure it works well. Any other suggestions for this code would be appreciated as I have a number of users who are sending data on this port....
1
vote
1answer
64 views

Server side of a chat program - part 2

A few days ago I posted a question about my code. It was obviously awful and thanks to some advice from Hosch250 I learnt a lot of things about OOP. Now, I rewrote the program. To me it seems a ...
8
votes
1answer
218 views

Server side of a chat program

This is just the server part of a chat program. The user of the server can receive and send messages to all the clients connected to the server. Everything works fine but since I'm a beginner I don't ...
0
votes
0answers
45 views

Library repository for adding, deleting and editing a list of books made with EJB and Rest

This was my first time designing the application from scratch, I feel I could miss something important, but I'm not able to find it by myself with no experience. Here is the pom.xml where I put all ...
4
votes
0answers
167 views

Simple Golang TCP server

I've written an itty bitty tcp server, for educational purposes. The program outputs a file if you input the correct hash (or whatever you set the environment variable to). I've performed tests on ...
4
votes
3answers
321 views

Reading properties from file during standalone application startup

I've a standalone Java application, which basically starts and manages two socket servers. I'd like to configure server ports in a .properties file using the ...
4
votes
1answer
53 views

Simple file server for GET requests

I recently made this simple server in C for Linux systems and was wanting to get another set of eyes on it for a review of the design. I am new to socket programming and used a textbook from school to ...
2
votes
1answer
31 views

Initial attempt at node.js automatic redirection

I'm working on a Node.js HTTP server on my iPhone: ...
4
votes
1answer
165 views

Node js server that create, read, and update user data using TCP socket and AES encryption

I've written a Node js server that create, read, and update user data from a SQL server hosted in Azure. Clients connect to the server using a standard TCP socket, every message sent or received will ...
4
votes
1answer
126 views

Node.js API Server for querying a Neo4j database

I've written a server in Node.js that listens to http requests via Express.js and forwards requests to a Neo4j server. It's my first time working with Neo4j and Express.js. The code runs as intended ...
3
votes
3answers
257 views

Multithreaded Client/ Server communication

This is my first network programming codes writing for a client who has the following requirement: My Server has to run 24*7*365 for multiple clients at the same time (concurrency). Their Client (...
3
votes
1answer
102 views

Multi Threaded Server client communication where clients can signal the Server to shutdown

I have 3 classes: Server, Client, RequestHandler It's about reading out commands and executing them What the programm does: 1) The Server starts, opens a ServerSocket and starts listening for Clients ...
3
votes
0answers
52 views

Custom TCP protocol concurrent chat server

So the task was to first create a custom TCP protocol (namely ebl0) with certain parameters in its header and a number of methods to use with it (e.g. Login, Create, Join etc.). I'm not listing it ...
3
votes
1answer
95 views

Client Server code in OCaml style

I have a piece of code that works but, as I start learning OCaml, I am not confortable with the "functionnal style" to write code. The following code create two threads. One for a tcp server that ...
3
votes
2answers
175 views

“Two way” HTTP Client

In one of my applications I make requests to a server. However, that server may at some point start making requests to my application as well. The server also allows polling, this means that I am able ...
0
votes
1answer
40 views

Set the correct server request path

Can this if-else statement be simplified and/or cleaned up? ...
0
votes
0answers
254 views

TCP Server using Winsock IO Completion ports model

I implemented a tcp socket server using the Microsoft IO Completion Port Model, which is basically an asynchronous model where WSAXXX function return immediately and you use a worker thread to handle ...
3
votes
1answer
110 views

MMO game server brain loop

I'm writing up a game server on which thread-safety is very important, basically for this approach I've decided to move my entire server in a single brain loop which handles everything in a single ...
8
votes
1answer
83 views

TCPListener server to discover clients on a network

I am currently writing a program to sync files (music, photos, etc) from my PC to an Android device. In order to do this, I have 2 application: one that is running on my PC, and one that shall be ...
5
votes
1answer
64 views

Brightness Web Server

This is the first real program I've written in Go so have at it! I wrote it because I use a tiling window manager that doesn't have any brightness control functionality (at least not that I know of). ...
5
votes
1answer
221 views

Simple Go TCP server and client

I'm a Go (and programming in general) newbie and the task was to program a Go server that would accept incoming messages, take each line, reverse its order and case and send it back. Besides doing ...
1
vote
1answer
80 views

C++ Socket Part-2

In my ongoing attempts to become a better blog writer I have some written some more code that needs reviewing. Full Source: https://github.com/Loki-Astari/Examples/tree/master/Version2 First Article: ...
4
votes
4answers
679 views

C Socket Part-1

In my ongoing attempts to become a better blog writer I have some written some more code that needs reviewing. Full Source: https://github.com/Loki-Astari/Examples/tree/master/Version1 First Article: ...
3
votes
1answer
74 views

A socket server that receives strings and prints them

Summary: Is my server handling every error and corner case possible? If not, what did I miss? Details I'm trying to write the most basic socket server I can, so I can learn TCP and the pitfalls of ...
0
votes
1answer
59 views

Accessing SharePoint's Managed Metadata TermSets Locally and Remotely

I have written a small program which has 2 main classes : ServerSideMMS: This can access the SharePoint Managed Metadata Services, but only from the server which ...
5
votes
1answer
125 views

Server connection handler in Python

I am working on a server for a smart house. This part of code is responsible for communication with client (separate application), sending requested data and ensuring everything is safe. I've decided ...
2
votes
0answers
213 views

UDP server for a multiplayer game using socketserver

I am making a multiplayer platforming game, and currently there are server performance issues once I have about 7+ clients connected. I was told earlier last week that I should investigate ...
4
votes
1answer
103 views

Common client server implementation

I have created a common C file for a basic client server. It works fine on my Linux setup. Please provide your comments/suggestions on how the code can be optimized/enhanced. After compiling we need ...
3
votes
1answer
151 views

NodeJS static file HTTP server

I wrote a NodeJS HTTP server specifically for serving static files. I didn't bother much about security since the server is going to be used locally in my Electron application. ...
2
votes
0answers
281 views

C++ UDP server for a game

I broke my server into two classes, a general server class and a client session class. I know the code isn't documented in the header, but I am more interested in the design of the server/session ...
5
votes
1answer
400 views

Game Networking between 2 players

I'm making a game and I want to establish a network connection between 2 players through a server(so the players are clients). So far all I have is: ...
3
votes
1answer
908 views

UDP Server Design and Performance

What I'm doing I am writing a server to work as my games backend. The server is being written in C# using UDP as the protocol, while the game is in C++. The biggest thing I've been focusing on was ...
2
votes
0answers
114 views

Android app that listens for commands over a socket

I've just begun programming Java and I'm working on the following code that deals with socket-based communications. Basically it connects to a client on port 8888: Gist of code ...
7
votes
1answer
239 views

Simple Multi-Threaded Web Server

Need a way to test a web crawler. Threw together this web server that will replay previously saved pages from a real web server. Headers ...
3
votes
2answers
389 views

MultiThreaded TCP Server with high CPU usage

I wrote simple C# TCP Server application and my program use a lot of cup, i was wondering anyone can review my code and would be grateful for any hints and suggestion. This is my code. ...
4
votes
3answers
108 views

Python HTTP Server

This is one of my first times writing Python. I'm most curious about style and whether while 1: x,y = socket.accept() is an acceptable way to wait for new ...
9
votes
2answers
613 views

Command line IRC client

I made this IRC client ages ago in Python, and thought I'd revisit it for Python 3.5 (I'd like to play with asyncio). Before I start, I'd like to have an overall design review about this. Known ...
6
votes
2answers
142 views

Cancel those hung print jobs

I've created a program that will list all hung print jobs on a specified server, from there it will load them and strip the jobs down to their Job ID then cancel ...
3
votes
1answer
60 views

Logging the load balance

I created a load balancing server at work and have to keep track of which server it adds the user to, so I wrote a little Ruby script that will do just that. I'm looking for any critique of my work, ...
4
votes
2answers
125 views

Balancing the server load

I've created a program that will take, a bunch of numbers from a range of 1 - 255, and then put them into 3 different strings(servers) equally. It does this by ...
0
votes
1answer
73 views

Server / client desynchronisation of messages [closed]

I'm trying to build a game where a client gets to play against a server in a game of Tic Tac Toe. I've built the game and followed a somehow structured design of how the game is supposed to happen, ...
2
votes
2answers
524 views

Simple TCP client-server solution

I have implemented a simple client-server solution using Java sockets and useful classes from java.util.concurrent. The communication protocol is rather simple: ...