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
0 answers

Socket programming - does client's input/output stream differ from server's input/output stream?

When establishing a socket in order to achieve client/server communication socket is initialized at the client and at the server side. The way I understand this is that they have 1 FIFO bidirectional file. Now as far as I understood sockets, it…
1
vote
0 answers

Nodejs server stop working after some time

I'm a newbie to Nodejs so I hope that I can describe my problem well. I have a local Nodejs express app server that runs on a windows machine by 'node app.js' command and listening to clients connections by socket.io (version 2.4.1 - as the…
Raz Vaknin
  • 31
  • 4
1
vote
1 answer

Communication options for client-server software system with heterogeneous clients

Our team is in the design phase of a client-server database software project. We're intending to develop a single database server system, probably using MySQL with a database interface/abstraction layer, possibly written in Java. We will also…
ACK_stoverflow
  • 3,148
  • 4
  • 24
  • 32
1
vote
0 answers

Chunked Transfer Encoding in C++

I'm developing a local client-server application in C++. Client requires to Server a binary file to be sent, through a POST request. Based on the code available on this repository https://github.com/eidheim/Simple-Web-Server I've implemented my own…
1
vote
0 answers

How come the server isn't getting the message (java)

public class Client extends Application { static TextField output = new TextField(); @Override public void start(Stage stage) { GridPane root = new GridPane(); root.addRow(0, output); Scene scene = new…
Jaden Ngo
  • 11
  • 1
1
vote
3 answers

is there a way to let the web server (not the Client which is the trivial case) send a messege to a Client application?

I'm about to start to develop and application in C# but I realized that I haven't the enough knowledge to develop it yet :S. The thing's that I need to find out a way to let the Web server comunicate with my application, i.e., in short, is there a…
Solid Snake
  • 130
  • 1
  • 7
1
vote
2 answers

In the webservices model are there still basically 3 tiers as the client-server model had?

The basic client-server model (even when implemented using questionable interfaces) had a presentation layer, a business layer, and a data layer. Are the directory and discovery methods using webservices models considered a entirely new layer? I…
ojblass
  • 21,146
  • 22
  • 83
  • 132
1
vote
1 answer

Process the file before uploading it

I got a form with SWFUpload. Files uploaded to the server are converted server-side (video being compressed, images being resized etc) Question is - can i delegate some of the functionality to client-side (like image resizing), to save some…
tevch
  • 625
  • 6
  • 14
1
vote
2 answers

applet servlet communication

I am trying to read a xml in the jsp and pass the same over network as char[] to the applet but i am getting java.io.StreamCorruptedException : invalid stream header :3C3F786D my jsp : <%@page contentType="text/html" pageEncoding="UTF-8"%> <%@ page…
bhalkian
  • 489
  • 5
  • 13
  • 30
1
vote
1 answer

SCTP: Issue with sending data over 100msec delay

I am using a SCTP client to send 1000byte data to another SCTP server over a 100m sec delay link. The delay is configured using traffic control(tc) and netem available in Linux tc qdisc add dev eth0 root netem delay 100ms The code I have used is…
snibu
  • 581
  • 4
  • 16
1
vote
0 answers

MPI client server connection with Singleton MPI_INIT

I want to implement (in C++) a feature, using MPI, in an existing (non-MPI) application. I am thinking of using mpich-3.4.1 for this. I am planning to create a .so file for that feature, which the original application can link to. I initially…
bdd
  • 21
  • 4
1
vote
1 answer

How to send an image from the client to server in Node.js without saving the file

Currently, I'm building a web app the uses Node.js and express for my server side application. I am pretty new to client-server applications and am not sure how to go about sending an image from my clientside website to my express server. I want…
1
vote
2 answers

C Socket Send() doesn't send until program terminates

This is my first question, so your grace would be appreciated. I'm trying to learn C Sockets for Unix. As part of my learning, I tried to code a simple telnet-like client that connects to a host on a specified port, prints any characters received…
MGordon
  • 11
  • 2
1
vote
0 answers

Java ServerSocket - problem with Clients synchronization

I am writing a multiplayer quiz application for two players (Clients) and I would like to have a mechanism which would allow only one player (the fastest to type the answer) to answer the question. So if for example: Player1 answers the question,…
1
vote
7 answers

C: How can a threaded program run faster than a non-threaded on the same single core?

I have a server and a client program. The server program runs all the time waiting for requests from clients. For the server to respond to each client it takes 5 seconds using the sleep() function. On the multithreaded version if I invoke two…
Pithikos
  • 18,827
  • 15
  • 113
  • 136
1 2 3
99
100