Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [client]

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

1
vote
0answers
10 views

Temporarily block API calls when server sends a 503 response

I have a scenario in which I call many APIs throughout my application lifecycle. In case the server sends me a 503 response code, it will also send a lockdown object which has a timestamp associated ...
2
votes
0answers
39 views

REST API request automation [closed]

I created a class to automate some requests for an API. Can I improve this code in any way? The code itself is very simple and easy to understand. ...
1
vote
1answer
30 views

Read message protocol socket c

My code recovers all sent messages (ending with "\r\n") in function read_message. I would like to improve this code, make it more efficient? If it's possible, I am ...
3
votes
2answers
119 views

PHP script that writes a JSON file with iextrading API data

iextrading has two APIs (v1, v2) which provide financial market data. Following script records a JSON file with their equity information (using a CRON job). Would you be kind and review it for any ...
8
votes
1answer
596 views

TCP client and server API

I made a server and client API for TCP connection. It is intended to shorten the work you need to do to prepare the server and client. It's separated into 3 projects - ...
3
votes
0answers
57 views

Network abstraction layer for a JavaScript JSON API client

I'm rewriting collection-json.js, a client for Collection+JSON. (Collection+JSON is a HATEAOS API media type built on top of JSON.) My Goals: Remove CoffeeScript webpack UMD so it can be used via ...
4
votes
0answers
49 views

Socket client-server app for exchanging sine-wave points

I wanted to try C# network programming and wrote this simple client/server application. The idea is - many clients can connect to server and request some data. As an example they request a set of ...
1
vote
0answers
34 views

Unity Multiplayer Authoritarian Client-Server

I have created a client-server system which handles multiplayer for a game I've been making with Unity. Problem is, it feels very clunky and complex and I want to know how the design could be ...
2
votes
0answers
81 views

A RequestService for making REST requests

In my app I have a RequestService for making requests to the external API. It works fine, but I want to know if there can be improvements. The RequestService returns the type ...
1
vote
0answers
66 views

Simple overlapped IO single threaded client

I wanted to make a single threaded network client that only uses a single connection to a server. IOCP seems like overkill but overlapped IO with event notification I think is the most performant of ...
14
votes
1answer
2k views

Event Based TCP Library

A while ago, I wanted to make a multiplayer game, so I wrote some TCPClient and TCPListener code, and it worked, but it was ...
2
votes
1answer
126 views

Class to make Web Service calls

I've a web service class to handle all requests to the external service. All the methods are very similar, so I want to refactor this into DRY code. This is an app in Xamarin.Forms. I'm making the ...
3
votes
1answer
98 views

Issue tokens concurrently with synchronization per client

I have an API application with token authorization. A token is valid for one hour. Each business client has its own instance of the API application: ...
0
votes
1answer
65 views

First Time Programming Sockets

The following code was my first attempt at creating and manipulating socket variables. I compiled and ran the code through cmd. What are the most common ways to organize methods in both a server and ...
1
vote
0answers
81 views

Server Client in socket c

This is a lib I am doing to interact with sockets. :) Here is the main file: ...
3
votes
1answer
1k views

UDP Chat Program with Server, Client and Listener (Feedback)

This is a little chat program that I have been working on and I want general feedback such as feature suggestions, efficiency comments, etc... The server will setup a DGRAM socket and constantly ...
2
votes
0answers
36 views

Undocumented API client / wrapper in Python

Got the go ahead to make an API wrapper for an undocumented web API. Hoping to get some feedback on my code and design choice. I've been going back and forth and haven't been able to really feel ...
5
votes
1answer
743 views

Extendable REST-Client

I've been working on a REST-client. The client itself provides only very basic and generic functionality. Everything else is done with extensions. Its raw usage does not need to be convenient but ...
2
votes
0answers
124 views

Chat program with C++ and SFML

This is my client code: (My server is very similar at the moment but I will upload it below this one just in case somebody wants to run it) ...
7
votes
1answer
186 views

ApiClient with http communication in Qt

This is my first code review request on this page. I tried to simplify my ApiClient as much as possible. The full version is also on GitHub. I thought very long about how to design the API client ...
1
vote
0answers
767 views

Winsock chat server and client application

I have made a C++ command line chat with server and clients as a hobby project. Here is the GitHub link. ...
6
votes
2answers
1k views

Networked Chat App in Python

I'm a highschool student with a passion for Python, and this is my first try at networking. GitHub server.py ...
6
votes
1answer
325 views

Getting prices of crypto coins

I have been working on this Raspberry Pi project for a while. It uses the Poloniex API to get prices of crypto coins and it shows the prices on multiple OLED displays. The displays use different i2c ...
-3
votes
1answer
158 views

Document Management Properties and Searching

This is the 'middle-ware' for a document management application. A document has properties which describe it, and allow users to search for it. The server will interact with the database, and the User-...
5
votes
0answers
117 views

Writing service/network layer for mobile apps

I have an app that gets and posts blog posts to and from a server. Right now I have a network client object which is passed into a service object. The service object is created and called from an ...
3
votes
1answer
154 views

Get external IP and update ddns service

I've created a cli application that consists of a package with 2 functions. One to get the external ip address, and another function to update a dynamic dns record at dns.he.net. Both are then used in ...
6
votes
3answers
4k views

My first implementation of a client/server application

Well, it's 2 applications really. Each one does its own stuff on the front-end. It's the networking that I'm most concerned about. The Server starts listening for connections on the specified port as ...
5
votes
1answer
134 views

C - Client Server application

I must create a client-server application. This application must calculate the average and variance of a sample. The client sent the number in this format: 2 3 4, where the first number mean how many ...
4
votes
4answers
328 views

Handling Server Responses

I'm not 100% sure this is the right place to post this. It is not about the specific code being written, but more about the design of the code. (Of course any constructive criticism is appreciated) I ...
3
votes
0answers
73 views

API client for a package shipping system

I would like to implement a higher level design pattern here but I am a bit stumped, How can I improve this code and make it more object oriented? ...
2
votes
1answer
63 views

Get application credentials from linked array obtained from Cloud Foundry API

I am new to Java and I use the following code to retrieve parameters from a linked hash map from the Cloud Foundry API. My question is if there is a better way to do it in Java? ...
3
votes
2answers
164 views

TranslateIt class using the Yandex translation service

I wrote a class TranslateIt for translating text files with Yandex.Translate service. I feel the code is rather bulky. Is it ...
1
vote
1answer
26 views

Class for Stripe transactions

I just wonder whether it is a common approach to hit the third-party API and fetch values within the initialize method? Ex. ...
6
votes
1answer
552 views

Library to be used against a specific REST web service

I have been trying to generate a basic library that I can use at work, to call different REST calls towards a software vendor that we are using. I would love someone's opinion on it, and what I could ...
4
votes
4answers
15k 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
633 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 ...
6
votes
1answer
542 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
1k 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 ...
4
votes
1answer
3k 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
170 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: ...
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
738 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
938 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
816 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
179 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
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
2answers
3k 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 ...
13
votes
1answer
10k 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
137 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
286 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. ...