I have 2 Clients:
1st pocket pc user (can be more then 200 people)
2th pc user
over Lan/Wlan the first Client sends a command to the client 2.
(In fact the command is written to a table in SQL server and the 2th client
reads every 2 seconds this table to see if a new command is sent)
Then the 2 th Clint makes an operation according to the command. That can
last 4-5 minutes. In this time the first client must not wait the asnwer of
the second one. He can do something else.
So when the 2th client finishes the operation he must send an answer to the
1st client.
I could do it so:
the 2 th cliet writes the anwer to a table in server and the 1st client
reads every second this table to find the anwer. But this not efficient
because the number of pocket pc users can be more then 200 and if each of
them try to access every second to the database it could be problematic.
So how should the 2th client send the answer to the fist one? Maybe with a
socket communikation? I dont know it really. What I need is: An Exception
must occur when the 2th sends the answer to 1st Cliet.
"Ignacio Machin ( .NET/ C# MVP )" wrote:
Hi,
Are you trying to implement an IM system ?
If so you have to rethink your design, it won't work this way.
Give a little more details about your application to better suggest a
solution.
--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation
"MAT" <MA*@discussions.microsoft.com> wrote in message
news:77**********************************@microsof t.com... Hi...
I am new in .NET and C#. I have such a problem:
I connect to the SQL Server over Web Services and send a request. Another
user must see this command (my request) and do somtehing and send me an
asnwer back. The problem is: This process can last a few minutes (The
other
user can send me the asnwer anytime he want), and I must be able to do
something else in this time till I get the answer. But I must see the
Antwort
as soon as the other user sends it.
I hope it was clear enough. Please help me.
Regards MAT