client-server

Client date and server date confusion.

I am working on a website in ASP.NET where emails can be scheduled for feauture. But the problem is with the date difference between server and client. As the server is in India an USA user can schedule a date behind today's date as their time zone is different. But this email will not be sent ever as the date has already been passed her...

Emacs client/server and ClearCase views

So I got tired of waiting for Emacs to load every time anew, and consulting Emacs Wiki, I wrote me an invocation script such as: #!/bin/bash # @file: /usr/local/bin/emacs # @version: 1 server=/tmp/emacs${UID}/server if [ ! -S ${server} ] ; then /opt/emacs/bin/emacs --daemon until [ -S ${server} ] ; do sleep 1s done ...

Does TCP send a SYN/ACK on every packet or only on the first connection?

I have a TCP server that listens for an incoming client, then sends it one packet of data every second. I was wondering, does the SYN/ACK packet only get sent on initial connection, so it looks like this: <client connect> SYN ACK DATA DATA DATA <client disconnect> Or does it get sent with every packet, like this? <client connect> SYN...

Dynamically enable ASP.net button in GridView based on another control in the GridView

I have a gridview with a cheackbox and a dropdown. The checkbox, by default, is not checked. The dropdownlist, by default, is disabled. In the edit mode of the gridview, when the user clicks the checkbox I want the dropdown to become enabled. If I could do this client side that would be awesome, if not I want to do it server side WI...

Database solution for client server application with encrypted database?

Hello, We have a Windows application on .net 2.0 that uses embedded encrypted database. The database consists of secret data - around 350mb, which is read-only and is updated with new one each 4 months. Untill now we use SQLite file as a database and it worked good, but we need to move to client-server version since some customers have...

connecting android with mysql

hey guys i am developing a final year location-based project(gps) in android.I have to create a server using php and mysql which contains name and location(in latitude and longitude) of important hospitals in Mumbai.The android client should be able to retrieve the the latitude and longitude of locations in mysql(external) database and t...

to read the packet of bytes on client(client Socket) from server(ServerSocket) using java.

hello, i m a new . i m a java developer(fresher) and currently i m working on BSE project and i m facing problem to read the packet of bytes on the client(client socket) from the server(server socket). if u can help me then please help me. Thanks in advance ...

struct sockaddr_un v/s sockaddr - C(Linux)

How is struct sockaddr different from struct struct sockaddr_un ? I know that we use these structures in client-server modules,for binding the socket to the socket address.And we use a cast operator for it to accept struct sockaddr_un. I want to know how different/similar are they,and why the cast operator? ...

RESTful: bidirectional communication

I was wondering if it is possible to have a RESTful web service and a bidirectional communication with the clients and server. In my case the state on the server can change, so the server should send a message to the clients to update themself. Perhaps that's totally against the RESTful idea. Can I AJAX help me with this issue? Thanks...

Flex Sockets not sending data on Windows

Hi All I really hope someone can shed some light on this. I am building a really simple Chat server/client using PHP and Flex. I have followed many tutorials and have a working server in PHP and a working client in Flex, except that if I use the client on Windows I can't send any messages. When I send a message on my Mac it goes throug...

How to develop a Client/Server/Host Remote Desktop Solution that can tunnel through Firewalls and NAT

Hi Everybody, Im starting a college in which i hope to develop (most of at least) a Java & JSP based remote desktop application that replicates Logmein's architecture. I would appreciate some ideas on how to implement this from a network & software perspective. The following diagram is a good representation - http://blog.donet.com/wp-co...

Which browser-based client-side technology?

Back in the day there were only Active X and JavaScript. Users would turn them off, disabling my apps, or would edit the JS code (usually breaking it). So I switched to strictly server-side, where I have complete control. Now I am thinking that I might be misisng out on half of the possibilities for browser-based apps. We are talking ...

SOA service calling back a client

This is more a theoretical question than a practical one, but given I undestand the principles of SOA I am still a bit unsure about if this can be applied to any app. The usual example is where a cliente wants to know something from a server thus we implement a service that can provide that information given a client request, it can be ...

Best practices for not passing object references on service calls

I have an application where a client communicates with a server side through REST. This is written in .Net, but I guess the question should be independent of this. Now - I have services such as GetAllCustomers and GetCustomerById. A Customer has references to a potentially big list of Order, so I don't want to pass the Customers refere...

How to ensure a .Net application is genuine?

In a client-server application how can the server know that a request comes from a genuine application and not from a tampered copy of it? I still haven't developed neither the client nor the server application. The solution may be plain socket, wcf, IIS hosted or whatever. ...

WPF/WCF Client-Server Music Server

I would like to develop a WPF/WCF client/server app that permits client apps to control a server-side/music-server across a LAN. My hope is for the client/server application to permit: Clients to subscribe to the server. Clients to send commands (WS-* protocols) to the server that operate the music-server. Server to broadcast any musi...

How to code multiple methods into one client/server application in java

I have an client/server application that I'm trying to write in Java and this application should be able to perform many functions and each time, the server should respond. I.e. The client has a GUI, while the server is a console application. The server should be able to list all the text documents that I specify (which will be read by F...

How to transfer a file in a client/server Java application.

Hello everyone! I am currently working on a homework assignment and I am thoroughly stuck. I am on the last question and I just can not figure out how to go about accomplishing the last task. Below is the tasks I had to complete: The client should save the file in the "client" subdirectory of the home directory. Test your program....

why doesn't my client read correctly the outputStream sent by the Server?

Hi guys. It's a simple client-server where Server using a BufferedWriter object would send to the Client receiving in the object BufferedReader. When I use OutputStream and PrintWriter for the Server and InputStream and Scanner for the Client it works well. What happens is that the client in Buffered way reads -1 if I'm sending an i...

Client authentication by a server

I have a java application that needs to connect to a server. Its rather simple to ensure that the server is not spoofed using SSL but I can't seem to wrap my head around on how the server would authenticate the client to ensure that the request is coming only from a trusted party. Only the first communication needs to be authenticated. D...