client-server

Sharing a single resource (serial port) between multiple applications

I need some architectural guidance. Here's my objective. I have a piece of robotic hardware that performs multiple functions (i.e. it has several distinct logical devices). For the sake of illustration, let's say it is a robot arm with interchangeable attachments. The hardware has a single serial port that it uses to connect to a PC, so...

creating ports and initiating communication between client and server

what i need is a server that listens to 5060 port , when the client sends data to that port the server should open up another port ( any port after 1250 i believe ) and forward the clients data to that port keeping 5060 idle so it can perform the same function for the next client so basically i need the server to a) open up multiple p...

Remote Client-Server Application in C#

Hello everyone, In my dotNet class, we are making a simple chat application. Our professor gave us a sample code as follows: SERVER: TcpChannel channel = new TcpChannel(8085); ChannelServices.RegisterChannel(channel); RemotingConfiguration.RegisterWellKnownServiceType(typeof(RemoteObject), "myobject", WellKnownObjectMode.Singleton); C...

Testing a Remote Client-Server Application in C#

Hello everyone, Yesterday, i've posted a question on some tips doing this Remote Client-Server Application in C#. So now, our group was able to create one. The problem is, we cannot think of ways on how we can test it since we are currently on different locations for our weekend break. If anyone of you has any idea on how we can test i...

How do multiple clients connect simultaneously to one port, say 80, on a server?

Hi I understand the basics of how ports work. However, what I don't get is how multiple clients can simultaneously connect to say port 80. I know each client has a unique (for their machine) port. Does the server reply back from an available port to the client, and simply state the reply came from 80? How does this work? ...

Capture server-client communication with tcpdump

I wrote a simple server and client apps, where I can switch between TCP, DCCP and UDP protocols. The goal was to transfer a file from the one to the other and measure the traffic for each protocol, so I can compare them for different network setups (I know roughly what the result should be, but I need exact numbers/graphs). Anyway after ...

How to make a client/server game using Google App Engine

I'm trying to do my first client/server game using Google Apps Engine as my back end (specification requirement.) I've done the tutorials (Java), but that all seems highly browser-centric. Basically, I'd like my (mobile, not that it matters) app to: Allow the user to create a game-account (NOT their Google account!) Log-in with that ...

Server not able to properly read/open a filename sent by client in C

Hi, I'm doing client/server interaction with sockets in C. What I'm trying to do is have the client request a file to be read on the server, the server return a buffer of the file contents, and the client print out the file. Though I was able to accomplish the server sending a buffer of a file to the client & the client printing it out ...

how to update all clients after each db transcation

I am developing a Client-Server based app using WPF, SQL-Server and WCF. This is basically a kind of POS application (not using any POS library but features are almost same). Server side coding is almost done. Now I am moving to client side coding. I am new in WCF (first app on WCF) and Client-Server architecture, so I surrounded by so...

Avoid Windows Firewall popup with Sockets on localhost

I have written a simple Java application that interacts with multiple instances of itself using sockets. The first instance automatically takes on the role of the server, listening on a specific port, and all subsequent instances connect to it. The problem I'm faced with is that Windows Firewall pops up asking me if I want to unblock th...

Server architecture

I have a TCP server responsible for handling requests and I have a web server need to send request to TCP server and TCP server forward that request and after handling, send response to web server Im using Socket for communication between web server and tcp server I want to know which one of the following is best practice? and why? 1) C...

Suggestions on popular client/server protocols.

Hello, I'm giving a presentation to some undergraduates & post graduates (as part of their computer networks course) on real world client server communication. "real world" is the key here. So, I want pick 4-5 case studies of popular real world client-server communication protocols that may help them in future. So far, I've thought of...

Approach for Client-Server Communication in Objective-C / Cocoa

Hey guys, I am working on an application for OS X that needs communication of small bits of data between a server side application and a client side application. I tried using a Ruby on Rails server as a backend way of communicating data, which was very simple and easy to implement but caused a bit of issues (I am not a proficient Ruby ...

Proxy for test automation and eventual regression testing, or other ideas

I was wondering if anyone could recommend some existing software for working around a slow shared mainframe that is being connected to in a testing and development environment. Recently I've been refactoring some webpages that are dependent on this server, and I'm stuck with massive delays from making the same queries. Ideally I want t...

Architecture/patterns for pushing live data in client server application

I have got a server that controls a complicated industrial system. We need to write a remote client that can connect to the server and "observe" its internal state. I need to work out: How to establish the current state when the client connects How to keep the client up to date with changes on the server Do we replicate all of the obj...

How to develop web mobile application by using ajax controls ?

I am developing asp.net (3.5) web application for mobile. I am able to find the regularly used asp.net controls for mobile on internet. I also got the link for the basic ajax controls for the mobile (such as required field validator, regular expression validator, validation summary etc) but I am not able to find the any link for the aja...

Writing test code for verifying database entries when testing an API

I'm writing test code to test a client-server application. The application under test consists of an application that runs on Tomcat or another Java EE application server, and client jars that expose an API. I'm basically writing test code that uses this client API to connect to the server. In addition to extensively testing the ...

Synchronizing client-server databases

I'm looking for some general strategies for synchronizing data on a central server with client applications that are not always online. In my particular case, I have an android phone application with an sqlite database and a PHP web application with a MySQL database. Users will be able to add and edit information on the phone applicat...

Pushing messages to clients from a server-side application?

I have a javascript-based client that is currently polling a .NET web service for new content. While polling works...I'm not happy with this approach because I'm using system resources and creating overhead when there aren't any changes to receive. My question is how do I notify my client(s) that there is new content for it to displa...

How do I calculate network speed: either "goodput" Bandwidth, or real Bandwith?

I'm trying to determine the latency and bandwidth between the server and various clients in a multi-tier system. I believe the easiest item to get is the "goodput" or the effective Application-layer rate, but the latency is a bit harder to get at, yet harder still is the true bandwidth that includes "window size" and other technical fac...