Questions tagged [client-server]

DO NOT USE ALONE. The client-server model is a centralized model, in which a server performs a specialized service (such as HTTP, SMTP, etc.) for multiple clients on request. Use for issues regarding client server communication. Use with a appropriate language tag(eg: [python]).

The client-server centralized model is a model in which servers perform services for many clients, who request them, typically over a network. The client-server model contrasts with the peer-to-peer model.

Typically, a client-server interaction will work as such:

  1. The client connects to the server and issues a request. The request is formatted to any one of a number of protocols, depending on the server type.
  2. The server receives the request, and begins processing it. While this happens, the client is made to wait.
  3. The server sends the client a response which typically contains both a status (whether or not there was an error) and content (which is whatever the client asked for originally).
  4. The client or the server can either terminate the connection, or keep it alive for further requests.

Writing in a client-server domain presents a number of challenges:

  • Many, many clients may be requesting services at any given time. This issue is commonly faced by websites, and is typically solved with multiple layers of load-balancing and caching. Wikipedia's architecture is an example of this (albeit an unusually complex example).
  • Networks can easily become unreliable, and sessions can be terminated at any time.
  • Security can be an issue, due to security compromises like a Man In The Middle attack. Cryptography algorithms (like SSL) are widely deployed in various networking areas to combat this.
6508 questions
1
vote
1 answer

Android - Client Server App

I have developed Client Server App. My Server is a jetty based webserver that I can query from my PC's browser after redirecting a port to emulator(if my server is on emulator & I'm testing it on emulator) or to device(If my server is on my android…
KhanZeeshan
  • 1,410
  • 5
  • 23
  • 36
1
vote
0 answers

How does the LSP tool/client know how to connect to my LSP server in the first place

I want to write a simple LSP server to provide autocomplete that will work with any number of IDEs and Editors that are LSP tools. On the topic of startup, the LSP specification does say the following: The current protocol specification defines…
1
vote
1 answer

Is it possible and what would be the best approach to completely secure a form in a react app without backend

I got that friend who want me to build a website for him. There will be no database, no need of Auth or anything like that, only text, images, embed streams and other stuff but nothing that needs a backend except that one form. Well the problem is…
RemiM
  • 137
  • 2
  • 11
1
vote
1 answer

How to create multiple client connections using python-socketio client for load testing Flask-Socketio server

I would like to create around 10,000 clients and use them to send and recieve messages from Flask-Socketio server. I am using the default Flask Werkzeug development web server. This is the app.py from flask import Flask, render_template from…
user15033700
1
vote
0 answers

Failed to load config "airbnb" to extend from. remote: Referenced from: /tmp/build_b7392388/client/.eslintrc.json

I get this error when I try to deploy to Heroku : [eslint] Failed to load config "airbnb" to extend from. remote: Referenced from: /tmp/build_b7392388/client/.eslintrc.json I have a client-server architecture that looks like this: And in detail…
Kibs J.
  • 133
  • 1
  • 1
  • 9
1
vote
1 answer

Communicating with different ports in UDP

I just started socket programming with .net using C# and I had a question regarding an experimental server and client I was building on my machine. My task is to make the client communicate with the server through port 2004, and the server with the…
1
vote
1 answer

Creating server-side GUI (Qt) on every client-connect: unresponsive GUI

I want to create a C++ multi-client server (asio) application that creates a server-side Qt GUI instance for every established connection to a client. The GUI will be associated with the connection. Problem: The created GUI instances remain…
LCsa
  • 607
  • 9
  • 30
1
vote
0 answers

How to make server handle multiple clients? - Python, socket, TCP/IP

I have to write a small python program which implement client-server connection (TCP/IP) and play the Twenty Questions game. The server generates a random number between 1 and 100 and then multiple clients can make connection with it. The clients…
Zoltán Orosz
  • 303
  • 1
  • 8
1
vote
4 answers

Can you determine how many bytes are present in an accepted Java socket?

I'm writing a file transfer protocol server in Java that is utilizing the HTTP/1.1 standard outlined in RFC2616. After the server accepts a connection, I'm trying to extract the HTTP request message. I want to do it in such a way that I'm not…
1
vote
0 answers

Is it ok for client and server to share same classes?

I'm writing a client-server app in Java using RMI, JDBC for communication with the database and JavaFX for the GUI. My question is: is it ok to put all the model classes (like Person, Citizen, Doctors...) on both the server-side and the client-side?…
Fred_03
  • 31
  • 4
1
vote
1 answer

Google Script Run Improve Performance with frontend calls in Apps Script

I'm struggling with Apps Script's google.script.run response time. There is a function that returns user permission as boolean: initFunction() { // function code } returns true. Some divs in my frontend are showing based on the initFunction boolean,…
1
vote
1 answer

Efficiently tracking coordinates on client and server

I'm trying to create a multiplayer game using websockets, node and JavaScript. What is the best approach for updating the client and keeping track of the clients co-ordinates on the server. My current method works, but it's very inefficient. (I can…
Jack
  • 15,614
  • 19
  • 67
  • 92
1
vote
0 answers

Opcua set node value don't write to the server

Goodmorning, I have an opcua python client. I need to connect to a server and to write in a specific node in first place a 0, to wait 1 second, and after to write an 1. How can I do that? I attach the code, witch doesn't crash but doesn't produce…
1
vote
0 answers

How to get daily Ua expert report

Good morning, I want to create a daily report with the production parameter on a server that i remote monitor with UA expert (Unified automation). How can I do this? If this is not possible with ua expert, how can I do this? With a python opcua…
1
vote
1 answer

opcua python set_node from client BadTypeMismatch

I have a problem with setting a value to a node in opcua from a python client. Infact I get an error when I use set_node(intValue) I obtain a Bad type mismatch. The code is: time.sleep(1) nodo = client.get_node("ns=1;i=68")…