Questions tagged [server]

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

Filter by
Sorted by
Tagged with
3
votes
1answer
70 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). ...
4
votes
1answer
4k 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 ...
5
votes
2answers
2k 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. First Article. This is a simple C++ wrapper for Sockets. Here the bit I ...
4
votes
4answers
753 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
161 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
1k 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
717 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
1k 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
193 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
304 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. ...
3
votes
0answers
1k 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
3k 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: ...
5
votes
1answer
6k 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
158 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 ...
8
votes
1answer
5k 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 ...
4
votes
2answers
2k 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. ...
5
votes
3answers
398 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 ...
11
votes
2answers
2k 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
165 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
62 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
132 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
156 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
1k 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: ...
5
votes
3answers
1k views

Web server to switch GPIO pin

I am running a simple Python webserver to toggle a GPIO pin on a Raspberry Pi. All seems to work well, but I have a few questions about my code (see below). I am using the ...
5
votes
3answers
2k views

Select() server implementation

My task was to write a server class, which uses select(), for a student projet. It was working, but i'm now willing to improve it a lot, and be able to use it in ...
3
votes
3answers
1k views

Simple UDP server/client written in Python to report back IP address

I'd like to get some feedback/criticism on my attempt to write a simple client/server application that reports back the (client's) global IP address. It would be nice if you could comment on the UDP ...
1
vote
1answer
337 views

Very basic networking in Java

This question presents two rather small Java programs: the first one is a simple client that reads text from command line and sends it to the server (TextSender.java); the server does nothing more but ...
2
votes
1answer
44 views

Server that accepts HTML and PHP requests

For the Harvard cs50x MOOC I have completed an assignment in which a C server framework that functions like a barebones apache server is provided, to be finished by the student. The below code will ...
7
votes
1answer
4k views

Basic Linux daemon

I'm looking at writing a simple proxy. At the moment I've got a logger, command line argument parse and simple daemon (it does nothing beyond logging). Next I'll be looking at starting the network-...
0
votes
1answer
548 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 ...
18
votes
1answer
3k 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. ...
6
votes
1answer
383 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 ...
20
votes
3answers
3k 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
1k 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
70 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 ...
2
votes
1answer
841 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
1k 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
170 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 ...
3
votes
1answer
815 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
6k 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
2k 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 ...
4
votes
2answers
2k 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 ...
1
vote
1answer
211 views

HTTP handlers exercise (tour of go)

The challenge, from Tour of Go, "Exercise: HTTP Handlers": Implement the following types and define ServeHTTP methods on them. Register them to handle specific paths in your web server. ...
4
votes
2answers
109 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 ...
13
votes
3answers
6k 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, ...
38
votes
1answer
1k 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
82 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
56 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
255 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
467 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. ...