Questions tagged [server]

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

Filter by
Sorted by
Tagged with
4
votes
2answers
871 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
149 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? ...
3
votes
0answers
2k 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
2k 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 ...
5
votes
1answer
659 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
29 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
264 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. ...
6
votes
1answer
3k views

Creating chat commands properly with Socket.IO

I am developing a chat program (mountreus-chat and GitHub) in Node.js using Socket.io and my code looks awful. I'm starting to use commands and now it's even worse. Here's a code snippet (you can ...
8
votes
3answers
10k 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
651 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. ...
9
votes
5answers
1k 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 ...
6
votes
1answer
263 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 ...
4
votes
1answer
967 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
206 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
1k 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
4k 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
103 views

Facade pattern usage with JDBC-resource on Glassfish

For this project: ...
5
votes
1answer
282 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
534 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
726 views

Chat server in Python

I just need to know if it's decent or not. Project home ...
4
votes
1answer
66 views

Setting .conf files for Nginx

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
9k 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
2k 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
287 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
1answer
2k 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 ...
4
votes
1answer
438 views

How do I add JDBC and Queue functionality to a simple server?

I would like to add some capabilities to the server. Firstly, it should accept and handle connections with multiple clients, so that there are no mixups between clients. Secondly, there should be ...
7
votes
1answer
4k views

Scalability of C server implementation based on pthreads

I am wondering about the feasibility of the following basic implementation of a server and how well it would scale. I know that large-scale, distributed servers should probably be written in a ...
2
votes
1answer
1k views

Ensuring client IDs are unique

I'm writing a node.js application that involves handling clients based on their ID without any real way of confirming that the ID a client says it has is its actual ID. That is, it's possible for a ...
8
votes
1answer
34k views

Better way to fetch JSON data from a server from iOS app

I have successfully coded a network request to fetch JSON data from our server. The remote function is written in ColdFusion. However, the code is quite lengthy and involved. I also noticed in the API ...
7
votes
1answer
9k views

Multi-threaded socket server high load

I'm trying to make a backend for QuizUp like application: user connects to a server, sends credentials and gets paired up with another user. After that server handles each pair, periodicaly sending ...
8
votes
1answer
16k views

Multi-threaded server socket

I'm somewhat new to network programming. I have a server that uses Ubuntu, which needs to send data quickly to about 50 clients. As of now, I have about 50 concurrent connections (of course), and it ...
5
votes
1answer
731 views

LEGO® Universe Authentication Server

Please note that all credit for code goes to humanoid24 and I have only helped the bare minimum required to be able to post it here. I am working with some friends to replicate a server for the game ...
4
votes
1answer
1k views

node.js Syslog server recording to MS-SQL database

This 43 line program is designed to listen for Syslog messages on port 514 and record the messages to an MS SQL Server database table. I would appreciate feedback from experienced node.js developers. ...
10
votes
4answers
7k views

Concurrent multi-server pinging in Java

I have an application that essentially "pings" all of the servers on my network. I have about 100 servers, and this ping will happen every 10 seconds. ...
4
votes
1answer
1k views

Turning a Java console app into a server

I'm not familiar with Java at all, so I'd like to get some feedback on this piece of code. I made it by looking at a few Hello World-esque Java server examples, so it may have drawbacks I'm not ...
3
votes
1answer
133 views

Helping my coding style with a java text server

I consider myself a beginner at writing in Java. I have never had a programming class, nor had my code reviewed. I have come to Code Review for some pointers. (Tips that is, not data references.). I ...
7
votes
1answer
13k views

Client server application for file transfer

I have an application for transferring files from clients to a server. A client opens, transfers a file to the server and closes. The server is open and may receive multiple files. Also, when ...
1
vote
1answer
580 views

Is it feasible to create a syslog server which writes to a client dataset?

I'm creating a simple syslog server in Delphi XE2 using Indy's TIdSyslogServer. I've decided to make it dump into a ...
1
vote
1answer
107 views

Node.JS HTTP server displaying Google

I'm reading Professional Node.js: Building Javascript Based Scalable Software by Pedro Teixeira and created a web page responding with www.google.de. Could you take a look at my code and let me know ...
2
votes
2answers
1k views

File locking between server threads

I have written the below code where the server is getting requests from clients on a socket and creating a thread per client. Each client thread is then writing to a file which is common to all the ...
6
votes
4answers
603 views

State machine for handling Telnet sequences for an FTP server

I've asked Code Climate to generate metrics for the ftpd Ruby gem. It correctly identified the God class; I know what to do about that. But one of the smaller classes has me stumped. This is telnet....
7
votes
1answer
10k views

Performant C# Socket server

I am creating a performant C# socket server. I'd like it to be able to accept as many simultaneous connections as possible. I've tested with 100 clients and all clients are fine. With 1000 however, ...
8
votes
1answer
636 views

A program to proxy MDNS requests to the DNS server

I wrote a program to proxy MDNS requests in a local network to the DNS server. This is useful because in some private networks, host names ending in ".local" are configured in the DNS server. But "....
2
votes
1answer
469 views

Implementing a Java server

My biggest problem is attempting to remove a client when the "disconnect" button is hit. It doesn't work properly, and I'm not sure if my approach is best: sending out a list of all the current users ...
10
votes
2answers
63k views

TCP async socket server client communication

I develop my first async TCP socket server and client program in c# and would like to review the first parts of it. I like to get some information’s about smelly code that I missed and what I could ...
4
votes
1answer
173 views

Haskell network connection graceful handler

Just trying to work out some simple graceful connection handling code in Haskell to get my head around some of the IO/Networking/Threading stuff, some tips where I'm doing things poorly would be ...
7
votes
3answers
981 views

Interface for server requests and responses

I have an MVC framework I've written. I'm trying to abstract out ASP.NET specific bits as well as make it more testable. Previously, I relied on HttpContext.Current ...
1
vote
2answers
373 views

Simple Node.JS webserver

I am in the process of writing a simple Node.JS webserver. I am about halfway there in terms of functionality. Please see the full code in this Pastebin (the client-side code is not shown as I want to ...
12
votes
3answers
8k views

Concurrent programming with a simple server

I am creating a simple server that accepts a int and returns the value received twice: ...
4
votes
1answer
3k views

Handling SIGINT signal for a server program

I have created a small server program that encrypts text using a named pipe: ...