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

Unreal Engine Pixel Streaming Matchmaker Server Not Working

I am trying to create a multiplayer experience using several Signalling Webservers hosted on different ports on the same instance/ machine but the Matchmaker is not working right in forwarding clients to unoccupied Signalling Servers. I have created…
1
vote
0 answers

Highly volatile server communication with BOTH TCP and UDP connections?

I'm trying to stream sensor data from my Arduino (server), over my network, to my computer (client) in real-time. While sensor data is coming in at a consistent rate per second, the time between messages is highly irregular. I tested both UDP and…
dandev
  • 83
  • 1
  • 7
1
vote
2 answers

How to make a JTable Column changes it color According to Specific Values from the Database

I'm Building a Client/server Desktop Application. I wanted to know if it is possible to make a JTable Column Changes its color according to specific values from the database (oracle). Red= "Refused". Green="Accepted". yellow="Quarantine".
Jalal Sordo
  • 1,605
  • 3
  • 41
  • 68
1
vote
1 answer

How to fix OpenSSL.SSL.Error: [('SSL routines', '', 'certificate verify failed')] in twisted framework?

I am using MacOS ventura and pycharm and trying to establish a connection between a twisted server/client with tls following this guide: TLS server with client authentication via client certificate verification Therefore i created a self signed…
ozb
  • 21
  • 6
1
vote
0 answers

How do i print the received frame in the client, having troubles casting a frame

I am trying to print the frame of the server in the client side, but i get segmentation fault or random symbols of the received frame, im guessing im not casting it correctly. This is my frame: typedef struct{ char *information[100]; uint8_t…
cesar
  • 23
  • 3
1
vote
1 answer

Peer-to-peer communication: is multithreading mandatory?

I have a system that has a central computer (server) and a group of small computers. These small computers can only communicate (by internet) with the central computer. No communication should be done between these small ones. It is like a…
1
vote
1 answer

Why is environ['QUERY_STRING'] returning a zero length string?

I found the solution to my (dumb) problem and listed it below. I'm using Python 2.7.1+ on Ubuntu 11.04. The client/server are on the same computer. From the Wing debugger, I know the server code is being called and I can walk through the code one…
Jarek
  • 65
  • 1
  • 9
1
vote
2 answers

How to stop subprocesses that communicate with the main process through request and response queues?

I have a Python program that starts N subprocesses (clients) which send requests to and listen for responses from the main process (server). The interprocess communication uses pipes through multiprocessing.Queue objects according to the following…
Géry Ogam
  • 6,336
  • 4
  • 38
  • 67
1
vote
0 answers

PyZMQ asyncio communication between windows server and linux client

I've setup a 1:1 connection between a linux client and a windows server using PyZMQ. On the client side I use zmq.REQ sockets and on the server side zmq.REP sockets. The server starts up a messageloop which receives requests from the client and…
1
vote
0 answers

How to detect the server is closed in grpc without sending any request?

I hope the client can detect that the server is closed without sending any request, so I use the keepalive option. But when I shutdown the server with ctrl+c, the connectvity state in client just turn from ready to idle instead of shutdown. import…
1
vote
0 answers

How to execute a script on linux server by windows client

I have windows clients working on a linux server. There are batch files to start the programs. The program itself is a windows executable. The path comes from a samba share and the executable starts under the users login automatically. The Batch…
Andy A.
  • 1,392
  • 5
  • 15
  • 28
1
vote
5 answers

simulate different PC with different IP addresses in linux environment

im new to linux environment and any help/feedback would be appreciated. Im actually trying to develop a client-server (MULTICAST) program, so, i would like to test one client sending information to different servers (one-to-many relationship). thus,…
Carlitos Overflow
  • 609
  • 3
  • 13
  • 41
1
vote
1 answer

How to persist a Server Sent Event object into my database?

I am trying to build a notification system where-in my back-end, upon receiving a webhook from a third party, will notify the front-end of a particular status, and have decided to go ahead with the Server Sent Events implementation in Spring Boot.…
1
vote
2 answers

VB .net : How can a Server handle multiple clients simultaneosly at an instance

I am facing a problem in VB .net Client/Server application where I am successfully able to talk between them using TCPListener and TCPClient class usage. However, when I try to connect another Client to the same server on the same welcome port, it…
Aditya369
  • 545
  • 1
  • 7
  • 27
1
vote
3 answers

which method to choose for jmx communication

I am developing a monitoring management java application using jmx api.I have seen examples in internet and be able to make remote calls from client application to server.My question ath this point is what will be best practise for communication…
cacert
  • 2,677
  • 10
  • 33
  • 56