client

wcf connection handling best practice

Hi All, I have a wcf client. What is the best way of handling connections ? Is it to open and close every time you need to contact the service: void doSomething(){ MyService service = new MyService(); //try service.doThis(10); ... service.doThat(20); service.Close() // catch } Or should I...

Hardware device controller application design suggestions

hallo, I 'm designing an application that connect a 3rd party hardware controller server to listen status messages and also send commands to 3rd party system.. In this statue what's the best approach?? i thought; developing a windows service that will register a remoting channel which other applications connect to send commands and l...

What is the difference, if any, between event handler and event listener ?

We read here and there, event handler, event listener... event handler/listener... object handler... it's a mass confusion that a newbie like me can't tolerate. Anyone to clarify this question: What is the difference, if any, between event handler and event listener ? Thanks a lot, MEM ...

Required field Validation implementation Client Callback asp.net

I have a grid which have required field validation. This grid is repopulated when user clicks on Add in pop up and saves, it repoulates the grid of the parent page using Client Callback mechanism. At this point it does bind required field validation at all. There is post which discuss about the behaviour but it does not specify about Req...

Get client IP address for WCF, post operation

I am trying to determine the client's IP address following this link: http://www.danrigsby.com/blog/index.php/2008/05/21/get-the-clients-address-in-wcf/. I have operationContracts of WebInvoke/Post and WebGet. The code works when the client request is a WebGet. But when the client request is a WebInvoke, I will get the WCF host IP. Any s...

Is it possible to have a http client open another connection to the server or other users?

I would like to make a browser based game with multiple gamers in the same environment. So if I did a first person shooter type of game would a client be able to open a udp connection with the server? ...

multiple client support

Hi All, Am creating a very customizable web application in j2ee. The application has some configurations that are specific to each client supported and the client can have multiple users. The way I am thinking of doing this is storing the configuration in a db table having the columns client_id , property_name, property_value and assoc...

Uniquely identify a user session on Linux/Windows

Hi, We do have a client software which communicates to a server. On every start of the client the user has to put in username/password. Now it would be nice if the user did login once (assuming he is still in the same operating system session) subsequent logins wouldn't require a password. (Sidenote: the security requirements aren't rea...

Excel RTD (Real Time Data) client other than Excel?

Hi everyone, I have been looking all over, and couldn't find any example for an RTD CLIENT (many RTD server samples, though). My goal is to 'pull' data from an RTD server into my application for algo-trading purposes. If possible, without using C# / .Net, as I am looking for a lightweight, deploy-able solution. Can you give me any ti...

Designing a message processing based system

I need recommendations, design input, references to similar systems or anything that will help in building the system below. I have been assigned to design a message processing based system. The over all architecture is as follows. We have i) Client ii) Server iii) Data Collectors - Services that gather data from the internet...

get text vaule of dropdownlist client side

I am trying to add a client side event to a dropdownlist and I need to access the currently selected Text. I have tried: ddl_tech.Attributes.Add("onclick", "document.getElementById('" + chk_techreview.ClientID + "').disabled = this.options[this.selectedIndex].text.Equals(' UNASSIGNED');"); and ddl_tech.Attributes.Add("onclick", "doc...

send multiple file over TCP with C# using TcpClient

hello, im trying to send multiple file over TCP using C# TcpClient, for a single file it works great, but when i have n files, it sends only the first one, here is my code SENDING FILES try { TcpClient tcpClient = new TcpClient(); NetworkStream networkStream; FileStream fil...

Are there any examples for programming client/server "Hello world" in C#?

I want some fairly simple functionality. . Server listening for a client . Clients connecting and sending "Hello server" . Serve acknowledging with "Hello client" Communication performed using TCP/IP. I've looked for examples with source code but haven't found anything that I can get working. Does anyone have any recommended resou...

wcf client local function

I have the following class [DataContract] public class A { private List<B> b= new List<B>(); public float getSum() { float sum= 0; foreach (B b1 in b) { sum+= b1.sum; } return sum; } [DataMember] public int B { get { return b; } set { b =...

drawing outside client area, winAPI

How would I draw outside the client area of a window, and on the title bar. I know it can be done, but I am unsure of how to implement this effectively. Think google chrome, where the tabs are on the title bar. ...

Why does django not see my tests ?

I've created test.py module, filled with from django.test import TestCase from django.test.client import Client from django.contrib.auth.models import User from django.contrib.sites.models import Site from forum.models import * class SimpleTest(TestCase): def setUp(self): u = User.objects.create_user("ak", "[email protected]", ...

How can I implement Pre- and Post-Commit Hooks in Riak?

There is but scant information on the web as to how to actually implement these features of Riak besides this blog post and a few others. Are any client libraries (ripple etc.) capable of receiving messages via the hook so that working with the changed data in the app (i.e. outside of Riak) becomes possible? Thanks. ...

Oracle with Clients: I must install oracle for client ?

Hi all, I'm very newbie for Oracle and very not sure about Oracle. one question I want to know. if I want develop oracle windows application. first I must install oracle on server for database server but I'm not sure if I don't want install oracle on client. I must install oracle for client YES or NO !? thank for help. ...

Smart client Winform vs MVVM + Prism

Hi, I am new to desktop applications, so please bare with me if this sounds very basic question. The question is, is Windows forms Simart Client is a legacy thing now? and to be replaced by Prism (and/or MVVM)? Should I bother to learn about Smart Client? Another question which might be related to is that what are the performance diffe...

wcf slow connection and number of connections in the pool

Hi, I have a wcf client. The client calls a function and then closes. If I use netstat there is only one connection. I made an experiment. In the server function I put Thread.sleep(10000). Then again I started the client. With netstat I found out that there are 5 connections. Why when the response is slow the client opens more conn...