A client is an application or system that accesses a service made available by a server.

learn more… | top users | synonyms

3
votes
0answers
44 views

Check the latest internet connection speed

On the journey of learning software design I am now taking a slightly different approach and thinking to focus on some real world projects. After code reviews I would be publishing them to the ...
5
votes
1answer
64 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 ...
2
votes
1answer
55 views

Android network API request

I often use a similar scheme work with an API project. Can it be made easier, or is there a standard approach? This class creates an API request: ...
1
vote
1answer
61 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
628 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: ...
0
votes
1answer
24 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 ...
1
vote
1answer
79 views

Telegram - GetUpdates Process

My code fetches telegrams from a server periodically in the background. The server API is documented here. What do you think of the way I do multithreading by handling my ...
4
votes
1answer
79 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 ...
5
votes
1answer
99 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
2answers
329 views

Video streaming client

I have written a client for streaming video playback. The client uses two threads, a receive thread and a decode thread. Events are fired off periodically for drawing a completed frame onto a SDL ...
12
votes
1answer
1k views

HTTP request and HTTP client abstractions

I am trying to make an OOP abstraction for a very simple HTTP client. I have also created a simple abstraction for a (GET only for now) HTTP request. I am using ...
0
votes
1answer
58 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, ...
15
votes
2answers
167 views

Semi-primitive IRC bot serving as learning project

I'd say currently my understanding of C# is within the range of (1Beginner-10Intermediate) a solid 4-5. Thus I am seeking to broaden my understanding of C#; I've started coding an IRC bot to improve. ...
2
votes
2answers
220 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: ...
3
votes
3answers
108 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 ...
0
votes
1answer
99 views

Client for many similar kinds of REST requests

I have a class that makes calls to a Web API (Using RestSharp), which works fine but the code is super ugly. What would be the best way to refactor it? I thought of just doing a Facade pattern so all ...
1
vote
1answer
294 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 ...
3
votes
1answer
66 views

Renaming video files based on episode title lookup

I'm new to F#, so I've ported an old Python script I have to F#. It scans a directory for files named something like Game.Of.Thrones.S01E02.xvidblahblah.mp4 or <...
5
votes
1answer
4k views

Multithreaded client server socket

I have created this library mostly for a learning experience with sockets and threading. For this review, focus on socket/threading. Let me know if I properly implemented both. If you want to comment ...
4
votes
1answer
79 views

Ruby script that deletes servers from Red Hat Satellite

This script uses the Red Hat Satellite v5.4 API to delete servers which are read in from a file. The servers are listed in the file by hostname but the Satellite API deletes servers by ID number. The ...
2
votes
1answer
206 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 ...
14
votes
5answers
843 views

Raw Text TCP Client

Yesterday I posted a request for a code review. After reviewing the code and the reviews, and after some sleep, I decided I can do better. In fact I logged on with the intent of deleting the question ...
5
votes
2answers
2k 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 ...
2
votes
2answers
8k views

Validating multiple EditText fields

I am using the following method to validate if user has given any input or left an EditText empty. I am concerned about the ...
4
votes
3answers
127 views

RFID financial transaction

I have this code below which establishes connection to server (from device). Basically assembles some buffer, sends it to server, gets response, parses and prints it. I would appreciate if someone can ...
3
votes
1answer
253 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
631 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 ...
4
votes
1answer
135 views

C# Chat - Part 2: Client

This is the second part of a multi-part review. The first part, the server for this client, can be found here. I've been building a simple C# server-client chat-style app as a test of my C#. I've ...
2
votes
0answers
828 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 ...
7
votes
3answers
3k 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 ...
3
votes
1answer
418 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: ...
4
votes
1answer
217 views

Passing API data chunk per chunk to its socket clients every M seconds

Let's say that I want to query some API which will respond with array of random numbers: [4, ..., 17, ..., 25] To keep things simple enough, let's say that array has always 10 elements. For ...
2
votes
1answer
2k 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. ...
4
votes
1answer
709 views

Reading and Parsing JSON from a Game Server

This is my naive (but currently working) attempt at reading JSON commands from a Java game server in Objective-C. I am afraid I might be doing something wrong, so hopefully this question will be a ...
7
votes
1answer
90 views

Dictionary synonym lookup via networking

I have a small TCP service running on port 4444 which, given a word, will look up synonyms in a dictionary. Below is my Scala code for connecting to the socket, sending the lookup command and parsing ...
3
votes
2answers
998 views

Simple IPv4 and port validation for chat client

This is part of my chat client's code. It works fine but it looks messy. Any ideas? ...
3
votes
1answer
657 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
225 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 ...
19
votes
3answers
18k views

HTTP Client requests done right

As advised by many, I am using a client pool - specifically the Apache PoolingHttpClientConnectionManager. For simplicity I wrap it in my own simple singleton class. Sorry about the rather OTT ...
8
votes
1answer
9k 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 ...
10
votes
1answer
3k views

Telling a client that there is no result via the DTO pattern

This is how I handle this situation right now: For example, I have service that returns UserDto by user ID: GetUserById. ...
3
votes
2answers
363 views

Peer Review of TCP Client Program Code

I'd like to have this code looked over because I feel my approach might be very novice and there must have to be a more elegant or at least less "grunt-work" way of doing it. I have to write a small ...
1
vote
0answers
319 views

Using a client from within a server in Python's Twisted

I am writing a server that serves an EventSource data-stream using Python's Twisted. Although this is my first time using Twisted, I hope this part of the code is acceptable. To get the events, the ...
7
votes
1answer
7k 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, ...
2
votes
1answer
362 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 ...
7
votes
2answers
37k 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 ...
3
votes
1answer
1k views

Delivering realtime data from backend socket

I've got server running to make serial data available on a TCP/IP port. My goal is to collect data coming from a realtime device connected to the serial port and deliver it to web clients connected to ...
1
vote
1answer
198 views

Music management app, mashing data from various APIs

I am basically getting data from various APIs and using PHP to put them together - like a web mashup. I am currently using 4 foreach statements to insert the ...
7
votes
1answer
272 views

Periodically comparing the play count of two Last.FM users

There is some little program (using a Last.FM API wrapper) which gets the play count of 2 specific users every 5 minutes and appends the difference between these 2 numbers to log file. Can you review ...