473,394 Members | 1,709 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

architecture problem

hi

I've build a webservice and a client application, the client
application get's it's information from the webservice, just like it
supposed to. Now comes te problem, the webservice should have an extra
task, and that is maintaining socket connections with a device and send
commands from the client through the webservice to the device. But
because a webservice is session depended the socket is closed when
there is no client application connected to the webservice and the
socket will be created multiple times when multiple client applications
access the webservice. So there should be 1 system.net.socket running
that maintaince connections with multiple devices (asynch socket) and
just the normal webservice that can send commands to a device.

1 solution is to build a seperate socket server application but the
problem is that i don't want that applicatio to poll for commands from
the client application or from the webservice.

Hope someone can help me

Greetz

Oct 9 '06 #1
2 1329
Hello dj******@gmail.com,

Why not to have the socket server and WebServer acting like Broker -one who
gets socket connection request from client and awake the socketServer, informing
the latest about client and asking him to be ready to get connected?

hi

I've build a webservice and a client application, the client
application get's it's information from the webservice, just like it
supposed to. Now comes te problem, the webservice should have an extra
task, and that is maintaining socket connections with a device and
send commands from the client through the webservice to the device.
But because a webservice is session depended the socket is closed when
there is no client application connected to the webservice and the
socket will be created multiple times when multiple client
applications access the webservice. So there should be 1
system.net.socket running that maintaince connections with multiple
devices (asynch socket) and just the normal webservice that can send
commands to a device.

1 solution is to build a seperate socket server application but the
problem is that i don't want that applicatio to poll for commands from
the client application or from the webservice.

Hope someone can help me

Greetz
---
WBR,
Michael Nemtsev :: blog: http://spaces.live.com/laflour

"At times one remains faithful to a cause only because its opponents do not
cease to be insipid." (c) Friedrich Nietzsche
Oct 9 '06 #2
Check out the System.Runtime.Remoting namespace:

http://msdn2.microsoft.com/en-us/lib....remoting.aspx

--
HTH,

Kevin Spencer
Microsoft MVP
Chicken Salad Shooter
http://unclechutney.blogspot.com

A man, a plan, a canal, a palindrome that has.. oh, never mind.

<dj******@gmail.comwrote in message
news:11*********************@i3g2000cwc.googlegrou ps.com...
hi

I've build a webservice and a client application, the client
application get's it's information from the webservice, just like it
supposed to. Now comes te problem, the webservice should have an extra
task, and that is maintaining socket connections with a device and send
commands from the client through the webservice to the device. But
because a webservice is session depended the socket is closed when
there is no client application connected to the webservice and the
socket will be created multiple times when multiple client applications
access the webservice. So there should be 1 system.net.socket running
that maintaince connections with multiple devices (asynch socket) and
just the normal webservice that can send commands to a device.

1 solution is to build a seperate socket server application but the
problem is that i don't want that applicatio to poll for commands from
the client application or from the webservice.

Hope someone can help me

Greetz

Oct 9 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: comp.lang.php | last post by:
I can't possibly reproduce the code for this as the 2 classes in question are about 1500 lines each and condensing is in this case impossible due to algorithmic logic dependencies. Let's say you...
25
by: David Noble | last post by:
We've been developing a web site using 3-tier architecture for 18 months now. There is a common layer that defines the classes - using XML schemas. The data layer acts as a wrapper to 3 databases...
3
by: Johnny Meredith | last post by:
Hi, I'm relaively new to programming languages in general, and brand new to VB.NET. I use/used VBA in MS Access previously to do what I needed. I want to learn VB.NET to stretch my boundaries a...
2
by: Martin Platt | last post by:
Hi, I've been working on designing new architecture to be used for future development using C#. We're going quite well with the architecture, having originally decided not to use the dataset,...
6
by: Gary James | last post by:
This may not be a direct C# question, but since I'll be using using C# for development, I thought I'd pose the question here. I'll soon be involved in the design of a new software product that...
2
by: John A | last post by:
I have a Web Service that I am reponsible for that we use for data integration purposes. Recently I have been tasked with sending some of this data to a third party. Because they need to receive...
0
by: srikar | last post by:
Hi all, I am having a problem, when I am compiling the code in 32 bit option on a 64 bit machine using the macro CPPFLAGS= -m32 I am getting the following warnings from the linker . ...
7
by: Samuel | last post by:
Hi, I am looking for some recommendations for client/server technologies and for the communication involved. I am currently planning to port a Perl application that has grown out of...
5
by: =?iso-8859-2?Q?Piotr_Ko=B3odziej?= | last post by:
Hi Assumption: I need to develop two applications - windows forms and ASP web page. Architecture: I developed web service which is being consumed by windows forms application. The...
0
by: ddmetro | last post by:
Hi All, Our project is to optimize gcc's instruction scheduling. It requires us to specify architecture information (basically number of cycles per instruction, stall and branch delays)...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.