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

learn more… | top users | synonyms

5
votes
1answer
314 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 ...
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 ...
4
votes
1answer
37 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
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 ...
13
votes
5answers
783 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
109 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
333 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
120 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
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 ...
4
votes
1answer
97 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
328 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
985 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
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: ...
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. ...
4
votes
1answer
368 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
84 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
364 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
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 ...
4
votes
1answer
175 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 ...
11
votes
2answers
9k 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
5k 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
278 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
239 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 ...
6
votes
1answer
4k 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
272 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 ...
6
votes
2answers
25k 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 ...