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

Tcp Socket: readine hangs if used in while loop at Client : java

I have been banging my head trying to figure out what is going wrong. I am trying a simple server client TCP socket in java. Server can send multiple lines as response. I am using while((str = in.readLine())!= null) at client side and it hangs after…
Android_enthusiast
  • 863
  • 5
  • 22
  • 41
1
vote
2 answers

About JMS system structure

I’m writing a server/client game, a typical scenario looks like this: one client (clientA) send a message to the server, there is a MessageDrivenBean in server to handle such messages. After the MDB finished its job, it sends the result message back…
cn1h
  • 1,188
  • 4
  • 16
  • 24
1
vote
1 answer

Asynchronous client broadcast receiver

I would appreciate any help/feedback on this issue. I'm developing an Asynchronous socket connection in C#, i would like to set a broadcast client receiver such that it broadcast local network servers and then it receives the messages from the local…
Carlitos Overflow
  • 609
  • 3
  • 13
  • 41
1
vote
2 answers

C# TCP server: Is resend on the application level needed?

I'm relatively new to C# so please bear with me. I'm writing a TCP client server application and I must ensure that all messages that the client sends get delivered to the server. Client will send data and server will send back an ACK (implemented…
Ben
  • 2,435
  • 6
  • 43
  • 57
1
vote
2 answers

How do I use a GWT RPC to save a file on the client side?

I'm looking for specific code on how to send a file from the server-side of a GWT application so that the client-side user can save it on his machine. Currently, the app allows the user to upload a file, reads it, and puts certain values from the…
CaptainPlanet
  • 352
  • 2
  • 13
1
vote
1 answer

Wordnet::Similarity server: how to talk to it from Java?

I installed the WordnetSimilarity server on my Ubuntu. I launch it with the command: $ similarity_server.pl --logfile server.log Now I want to use it from my Java/Groovy app, and I wrote this code to get the server version: // open…
Mulone
  • 3,603
  • 9
  • 47
  • 69
1
vote
2 answers

Indy 10 TCPServer does not communicate with connected clients on Linux

I have a problem that is driving me up the wall. I am trying to port the server side of an Indy 10 client/server application on Windows to Linux to save costs. The application was originally developed using Delphi 2010. I have since ported it to…
JDaniel
  • 100
  • 4
  • 9
1
vote
2 answers

Server calls client (EJB)

In my project I have Business Logic implemented as EJB on Application Server and a desktop client - standalone application that calls those EJBs. Everything works fine when I have only one sided communication (client -> server) but now I need the…
user993400
  • 11
  • 1
1
vote
2 answers

Share data between C# server process and website

I have written a C# server which listens for Tcp connections. A client can connect to the server and send data, mostly filenames. The data that the server receives needs to be shown on a website written in ASP.NET. I was thinking of using pipes to…
Carlito
  • 805
  • 10
  • 20
1
vote
1 answer

custom-set-faces only works with non-server emacs, but not /usr/bin/emacsclient and emacs server

I've been trying to work with emacs client/server functionality to avoid the long delays when starting a new emacs session. (emacs version 27.1 on Ubuntu MATE, BTW) When I start emacs directly (i.e. no client server settings), the following code in…
mikemtnbikes
  • 393
  • 2
  • 11
1
vote
2 answers

Security on a client server application

I'm developing a client-server app, the client is an iPhone device that communicants with my c# server. The client and server use a textual protocol that i have designed to exchange messages over TCP sockets. Can someone please give me some…
Eyal
  • 10,777
  • 18
  • 78
  • 130
1
vote
1 answer

Bundles within a Bundle

I'm trying to implement a client-sever model using OSGi. the server application is the OSGi framework that is running in a computer and client applications connect to its console remotely and send their commands via a Java Socket and receive their…
Reza
  • 2,058
  • 3
  • 20
  • 33
1
vote
1 answer

Share tokio channel between functions in rust

I'm new to rust and I'm implementing a simple client server application. I managed to get the application working from the std::sync::TcpStream library. Now I want the server to be able to accept requests asynchronously using the tokio library. The…
Tutu ツ
  • 25
  • 2
1
vote
2 answers

How can I create a proper signature to submit to a PHP server?

I have a server with a known public key: P. User u needs to send the server some data. Therefore, he sends (data) encrypted with P along with sha256(data) as the signature. A. is this secure? B. Is it an information leak transmitting the hash in…
chacham15
  • 13,719
  • 26
  • 104
  • 207
1
vote
1 answer

Client Server Many To Many Design Model (Many Users - Many Applications) in C++

I need to create a mapping records of users and applications (many to many model) in c++. One users can have many applications connected to it, and vice versa, one application can have many users connected to it. I have 2 design model, as…
all_by_grace
  • 2,315
  • 6
  • 37
  • 52