A software application that services requests from clients using a data transfer protocol.
0
votes
0answers
16 views
Connect 4 Java Client Server Program [on hold]
Im struggling with my code, how do i properly fill the 2d array from client to server
Client
...
1
vote
0answers
14 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 ...
0
votes
0answers
48 views
1
vote
1answer
52 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
208 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
29 views
A library repository for add, delete and edit 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 ...
4
votes
0answers
42 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
312 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
45 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
116 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
64 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
123 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
89 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
41 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
60 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
139 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
38 views
0
votes
0answers
161 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
104 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 ...
7
votes
1answer
74 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
58 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
160 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
73 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
665 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
64 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
40 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
104 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
150 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
97 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
123 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
228 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
261 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
572 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
98 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
154 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
322 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
99 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 ...
8
votes
2answers
432 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
137 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
124 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
69 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
455 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
315 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 ...
4
votes
3answers
366 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
158 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
300 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
36 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 ...
6
votes
1answer
464 views
Basic Linux daemon
To help myself relearn C++, 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 ...