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

How to continuously send GPS data to a service?

Let's say that I have a device which has to report the data from a device's GPS sensor to a server. In other words, the server needs to know the coordinates of the device at any point in the time. What is the best way of updating the GPS coordinates…
skanatek
  • 5,133
  • 3
  • 47
  • 75
1
vote
1 answer

WCF Service client with "The server did not provide a meaningful reply..." exception

I have a Windows Service that hosts a WCF Service. I also have a client that connects to it and messages are sent back and forth. When I send a message from the client to the service the client catches the following excption: The server did not…
Brian
  • 1,397
  • 9
  • 33
  • 51
1
vote
1 answer

How to implement Master-Client model using GKSession?

I am working with GKSession right now. I want to connect more than 2 iPads with each other. I am able to connect two of them using Bluetooth GKSession PeerPickerController. I am pretty much new to this stuff. Can any one give me some pointers or…
slonkar
  • 4,055
  • 8
  • 39
  • 63
1
vote
0 answers

C++ access to on-line file storage

I am looking to add to an existing C++/Windows application the on-line storage of application files, for backup purposes and easy of application file access between multiple computers. The files are around 100k in size, and I’d estimate that each…
user1139455
  • 126
  • 3
  • 7
1
vote
3 answers

Metric for the impact of an application on network traffic

I'm writing an application and I'm able to set its throughput (the number of bits per second it sends over the wire) to whatever rate I wish. However, I would like to set it as high as possible, as long as other traffic on the network is not heavily…
r0u1i
  • 3,526
  • 6
  • 28
  • 36
1
vote
1 answer

Can I avoid duplicating my business layer? (.NET)

I have a tech demo application to write, with multiple clients: web client (ASP MVC 3), desktop client (currently it'll be a WCF app, planning to spice it up to Metro later) and a mobile client (Wp7 is the default task, but if I feel like a…
TDaver
  • 7,164
  • 5
  • 47
  • 94
1
vote
3 answers

Java applet networking

I am looking into java networking and want to be more knowledgeable and learn this subject of java, and to do so I decided I would make a simple online chat type applet so that it can interface between the clients. The applet part of it is fine, and…
user1062898
  • 109
  • 2
  • 2
  • 10
1
vote
1 answer

Executing a tr command on a queue?

I have a server and client application, using IPC queues. The server is (for now) simply sending back the text received from the client. I would like the server to change the letters in the message from lower to upper case. I'm wondering how to…
uluroki
  • 171
  • 2
  • 2
  • 11
1
vote
1 answer

Flex socket connection

I have a Groovy server and Flex client. When i try to connect from Flex to Groovy application, i reveive message. Then i send some policy XML response and try to send something to the server. But instead of receiving something…
shybovycha
  • 11,556
  • 6
  • 52
  • 82
1
vote
1 answer

Data transfer over TCP-IPv6 connection

I am working on a client-server application in C and on Linux platform. What I am trying to achieve is to change the socket id over a TCP connection on both client and server without data loss where in the client sends the data from a file to the…
user369823
  • 351
  • 2
  • 5
  • 16
1
vote
1 answer

How to browse RMI server disk file system with java.io.File?

I want a RMI server / client system where you can browse the files on the server with a client. In this case the server is a Debian and the client runs on Windows. I tried to have the server hold a File object pointing to the currently seen…
user1090755
  • 517
  • 1
  • 4
  • 14
1
vote
0 answers

How to make J2SE as Server and J2ME as Client with Wi-Fi service?

i want to know what is the protocols to be used, how to implement these protocols in both j2se and j2me -> just the lib to be seen to know this.
Adel
  • 23
  • 7
1
vote
0 answers

Querying DHCP server for fetching particular option (using option ID)

How can we query DHCP server to fetch option Data (set on DHCP server) using option ID or any other means? Platform: windows Language: C#
bayCoder
  • 1,345
  • 1
  • 11
  • 19
1
vote
1 answer

send video files to server from multiple clients

I'm using this client/server code which i found on the net for communication: client: public void Send(string name, string path) { try { IPAddress[] ipAddress = Dns.GetHostAddresses("address"); …
Quoter
  • 4,236
  • 13
  • 47
  • 69
1
vote
1 answer

Static vs. Dynamic binding - what's the difference?

Right now, I am learning about networked systems, and the issue of "binding" came up that was never really covered in our course notes, other than the fact that a client can know which mailbox to send a remote procedure call to at either compile…
Dark Templar
  • 1,129
  • 3
  • 11
  • 18