get a Answer from Server

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • MAT

    get a Answer from Server

    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
  • Ignacio Machin \( .NET/ C# MVP \)

    #2
    Re: get a Answer from Server

    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" <MAT@discussion s.microsoft.com > wrote in message
    news:77D02826-EA1E-4446-AE28-19347D8BF2A8@mi crosoft.com...[color=blue]
    > 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[/color]


    Comment

    • MAT

      #3
      Re: get a Answer from Server

      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:
      [color=blue]
      > 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" <MAT@discussion s.microsoft.com > wrote in message
      > news:77D02826-EA1E-4446-AE28-19347D8BF2A8@mi crosoft.com...[color=green]
      > > 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[/color]
      >
      >
      >[/color]

      Comment

      Working...