A software application that services requests from clients using a data transfer protocol.
0
votes
1answer
84 views
Multi-player game server accessing and querying MongoDB
I have a remote hosted server that's running Java VM with custom server code for a multiplayer real-time quiz game. The server deals with matchmaking, rooms, lobbies etc. I'm also using a MongoDB on ...
13
votes
1answer
122 views
TCP Socket Wrapper
I'm trying to build a simple server software for training purpose, most likely a IRC server, but I'm not there yet.
I'm currently implementing a TCP socket class, to ease the use of the C socket API. ...
4
votes
0answers
39 views
Simple Echo Server
I wrote this echo server in Haskell as a way to introduced myself to programming with sockets in Haskell and generally practice Haskell. The echo server has a simple purpose: accept connections from a ...
15
votes
1answer
826 views
Simple webserver in C
My first learning project in C. Looking for general feedback e.g. gotchas, coding standards, formatting, naming etc. I'm here to learn!
webserver.h
...
7
votes
2answers
229 views
TCP Tunnel in C
I'm completely aware that I'm not using NIO, but this is my first polished C project. All criticism is welcome, if I'm doing something wrong, I want to nip it in the bud before I'm used to it.
...
7
votes
2answers
42 views
Monitor webserver accessibility inconsistencies
I have written a simple application to monitor whether a couple of Java EE 6 web applications deployed to Glassfish 3.1.2.2 are accessible. My intent is to demonstrate to our operations team that the ...
1
vote
0answers
15 views
Server framework
I decided to abstract out some of the code I use in personal projects into a library. In particular, it'd be used primarily for server-side programs, but I don't see any reason it wouldn't work fine ...
0
votes
0answers
49 views
Thread function for server-client connection
edit: This section has not thrown segmentation faults so lets focus on it please.
I am working on multithreading a data server application. I am new to multithreading in general. I wrote a version a ...
2
votes
1answer
59 views
IRC server implementation in Python
People say that the code in my implementation is generally obscure.
Can you point me what looks bad?
...
2
votes
1answer
62 views
Moving DTOs between server/client
I am developing a server for a web-client. Basically it's just a simple CMS to modify some data. My problem is that I never had a project like this where I have to take care about the server and the ...
1
vote
2answers
117 views
Open server asking for a password
It first creates a server and waits to connect. Once the client connects to the server he gets the line. If he puts the correct code he gets output -> good job. If not -> the software disconnects.
My ...
0
votes
0answers
42 views
Hash table with “Time To Live” elements
Recently, I got a very interesting task: to realize the hash table that works in multi-process server in common memory, each element of which must have a TTL property. It was suggested to implement ...
5
votes
2answers
108 views
Private client-server chat
I try to create a private chat with Python but I don't know best practice.
It's only for study purpose, I'd like understand the logic behind a simple private chat with socket and the best mode to ...
3
votes
1answer
65 views
Loop for downloading file from the server (in client-server application)
In my client server application, client sends some commands and the server gives the results back.
Now my special concern is about the looping for downloading file from the server class, that is ...
3
votes
2answers
323 views
Client-server application
This is my very simple client-server application. Client sends some commands to the server and server gives back the output to the client. However, my special concern is about the GET command sent to ...
0
votes
0answers
74 views
HTTP handlers exercise (tour of go)
Any suggestions on how to improve the code shown below for the go-tour exercise http://tour.golang.org/methods/14?
Exercise description:
Implement the following types and define ServeHTTP methods on ...
4
votes
2answers
70 views
Dynamically Generating a Map Webpage for MMO
This question is related to my previous question about an MMO Server.
Here, what I am doing with this program is connecting to another Java server program that resides on the same server as the MMO ...
11
votes
3answers
2k views
MMO Game Server
I've been building an MMO in Java for a game that will have clients built with libGDX. I have already built clients for the browser, desktop, iOS, and Android. To accommodate multiple platforms, ...
13
votes
0answers
117 views
Utility that decodes and logs UDP packets
I have written the following utility, as my first non-tutorial program in Go.
The purpose of the utility is
to connect to a torque/force sensor (aka load-cell) via UDP;
to send an initialization ...
5
votes
2answers
68 views
App for displaying pictures to like
I am making an app that shows some pictures and you can like each picture. I am sending a POST request from the Android device. In my backend I have a Python script that takes parameters category and ...
3
votes
1answer
55 views
Chatroom log in with no 3rd party libraries
So, I'm creating a chatroom with no 3rd party libraries and currently I'm logging people in like this:
...
2
votes
1answer
50 views
Website monitor - if site is down, kill the process, contact admin and restart server
My Python-based web server (Tornado module) is pretty complex and keeps going down (seems like usually in the middle of the night), so here's a bash script that kills the process, restarts and emails ...
1
vote
1answer
77 views
Erlang parallel server using sockets
The task was to build a simple parallel server in erlang that prints what it receives through a socket and alerts when the socket is closed.
...
1
vote
2answers
194 views
C# Chat - Part 1: Server
I've been building a simple C# server-client chat-style app as a test of my C#. I've picked up code from a few tutorials, and extended what's there to come up with my own server spec.
In this post ...
-3
votes
2answers
283 views
Socket server class [closed]
I am trying to build a high performance socket server and this is what I have come up with so far. Can anyone please review my code and see if I can make any improvements on it?
...
4
votes
2answers
145 views
Simple High Score Server for HTML Game
I have implemented a basic high score server for my strategy game. The goal here was to get the high scores working for the browser based version of the game (I am using the libGDX library with GWT ...
1
vote
1answer
60 views
Ruby webserver app
I am building a web app in Ruby but without Rails. So far I just have a very basic web server. What improvements can I make to it?
...
2
votes
0answers
327 views
Netty connecting to multiple servers
I am using netty to connect to multiple servers, query for an item, and aggregate the results in my Client. The code below works, but I am unsure if it is the best way of achieving my goal. Also, I'm ...
2
votes
1answer
84 views
Reading and Writing object from files
I have a server which has a permanent state which has to be saved on stable storage. It is composed by three fields:
List<LogEntry> log
...
2
votes
1answer
140 views
Small web service using scotty
I'm writing a small tool that allows to manually protocol dial-in-actions. That means a user can say he dials in to a site or he dials out of a site. (What this means is not important for the sake of ...
1
vote
1answer
21 views
Backing up a server
I wrote a bash script to automatically backup a server and upload it to a server level FTP server. I'm somewhat new to the making of crontasks and other stuff heavily related to Linux administration. ...
5
votes
3answers
203 views
Concise HTTP server
Here's my code for a consise node.js HTTP server.
It does work as intended, but I'd like to ask if there's any glitch or to be improved.
...
5
votes
1answer
418 views
Creating chat commands properly with Socket.IO
I am developing a chat program (mountreus-chat and GitHub) in Node.js using Socket.io however my code looks awful. I'm starting to use commands and now it's even worse.
Here's a code snippet (you can ...
7
votes
3answers
984 views
TCP Chat (Server/Client)
I'm looking for some hints or advice regarding efficiency, performance and some good coding practices. Also I'm curious about synchronization. The server is multithreaded, so I think some operations ...
5
votes
1answer
108 views
Basic 30 TPS server loop
I've created a console server which is supposed to update 30 times per second, I'd like you to review it and also I'm curious about the accuracy of the server's loop.
...
7
votes
5answers
884 views
Simple server to manipulate priority queues
In a few months I'll work on a C++ project that could span a year or two. I've a strong C background and for the usual reasons I always chose C over C++ (please forgive me). To extend my capabilities ...
5
votes
0answers
123 views
Deadlock watchdog in a server to defend against poorly written extensions
In the Red5 server we have no control over what implementers do with their applications. As such, we have attempted to implement code that would prevent them from causing bad things to happen.
This ...
3
votes
1answer
186 views
Basic TCP server client application
I've written a basic server/client application to use in an automation application written in C#. The code is working pretty good, but I have a few thing I want to improve:
Server:
...
0
votes
2answers
76 views
Java background server class that might be called from ui thread
I have a server communicating over network interface. This server should run on a background thread, so that it does not block the ui thread. The ui thread starts and stops the server. Even starting ...
0
votes
1answer
105 views
Auto-update server
Yesterday and today I've been working on an auto-update system for a game project. I've just pushed the server-side script to the server, and it seems to work great. Since this is public-facing code, ...
2
votes
1answer
1k views
Simple TCP Client Server application with receive side only
I wrote simple TCP Client Server application, I was wonder could you please review my code. I would be grateful for any hints and tips regarding to logic of app, coding style or naming convention.
...
0
votes
1answer
44 views
5
votes
1answer
108 views
Server that supports two types of connections
I'm wonder if my approach is correct. I'm trying to make a WinForms server that processes data from 3 sides:
from bluettoh (InTheHand library) as source data which I need to process in server
to ...
1
vote
0answers
117 views
A small chat server/client
This is my first attempt at a chat server/client setup. It's very simple, and doesn't use any logging, excryption, or validating handshakes.
When the server is started, it displays a list of all of ...
1
vote
2answers
215 views
4
votes
1answer
33 views
Nginx setting .conf files appropriately
I use Nginx as a server, and I currently use this for configuration of each my sites.
Basically, I have multiple files like this located in /etc/nginx/conf.d/
...
6
votes
1answer
2k views
Interrupting a ServerSocket#accept() and shutting down a multi-threaded socket server
I have some code in progress that does multi threaded communication via sockets. I am using a poison pill to shut it down. It is a local port number. Is there a better way to shut it down gracefully?
...
6
votes
3answers
273 views
WSGI static file handler
I put up a simple WSGI static file handler, but I'm skeptical about its efficiency, also because I got a handful of errors while benchmarking it with Apache Benchmark.
The errors are:
...
4
votes
2answers
146 views
Fetch details from server
I am using this code to fetch some details from server from my android app. How can I improve it?
Here I am also transferring some data from one activity to another.
This is how I have written my ...
3
votes
0answers
264 views
Multi-user server connection handling
I'm writing a program and I have a server that needs to be able to handle multiple client connections at once doing many different things.
I'm using the Qt library, so I handle new connections like ...