Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Controls > Socket component in a browser

Reply
Thread Tools

Socket component in a browser

 
 
Morten
Guest
Posts: n/a
 
      12-03-2003
Hi,

I have a problem with TCP communication in a browser.

The case:
I have made a control using C#. It consist of a GUI and a socket interface
(TcpClient). The GUI is a WindowsControlLibrary. I have no security
restrictions in the browser for this test (Full trust).

When I run the control in the browser, it is displayed as it should, but
when I hit my Connect button, it create a TcpClient, but when I use the
GetStream function it takes about 2 minutes before it moves on.
I have made a server as a standard Windows app, and I am able to see, that
the GetStream call from my browserClient is received at ones in the server
app.

Does anyone have a good idea of how to get rid of this delay ???

Morten Larsen


 
Reply With Quote
 
 
 
 
Morten
Guest
Posts: n/a
 
      12-03-2003
Hi,

A little correction !
As I wrote before it isn't the GetStream function that result in a delay,
but the Connect function. I am still able to see that the Server socket
accepts the connection request.

Morten



"Morten" <> wrote in message
news:...
> Hi,
>
> I have a problem with TCP communication in a browser.
>
> The case:
> I have made a control using C#. It consist of a GUI and a socket interface
> (TcpClient). The GUI is a WindowsControlLibrary. I have no security
> restrictions in the browser for this test (Full trust).
>
> When I run the control in the browser, it is displayed as it should, but
> when I hit my Connect button, it create a TcpClient, but when I use the
> GetStream function it takes about 2 minutes before it moves on.
> I have made a server as a standard Windows app, and I am able to see, that
> the GetStream call from my browserClient is received at ones in the server
> app.
>
> Does anyone have a good idea of how to get rid of this delay ???
>
> Morten Larsen
>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: socket.unbind or socket.unlisten? - socket.error: (48, 'Addressalready in use') Steve Holden Python 1 02-03-2009 06:20 AM
Re: socket.unbind or socket.unlisten? - socket.error: (48, 'Addressalready in use') Steve Holden Python 0 02-01-2009 12:45 PM
Re: socket.unbind or socket.unlisten? - socket.error: (48, 'Addressalready in use') Laszlo Nagy Python 0 02-01-2009 07:37 AM
socket.unbind or socket.unlisten? - socket.error: (48, 'Addressalready in use') Laszlo Nagy Python 1 01-27-2009 05:05 PM
Re: socket.unbind or socket.unlisten? - socket.error: (48,'Address already in use') Jean-Paul Calderone Python 0 01-27-2009 01:41 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57