[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Gnash-commit] gnash ChangeLog server/asobj/NetConnection.cpp ...
From: |
Sandro Santilli |
Subject: |
Re: [Gnash-commit] gnash ChangeLog server/asobj/NetConnection.cpp ... |
Date: |
Wed, 30 May 2007 16:35:50 +0200 |
On Wed, May 30, 2007 at 04:19:16PM +0200, Tomas Groth wrote:
> > > This breaks lulu.tv support. Why not return true?
> >
> > We should only return true if we connected, if we didn't why returning true
> > ??
> >
> Because we are connected, and therefore ready to pass data to whomever wants
> it.
> Returning false makes NetStream think that we're not connected.
What about adding an isConnected() member to NetConnection ?
Consider:
nc = new NetConnection();
if ( nc.connect(here) ) { ... }
if ( nc.connect(there) ) { ... }
returning true from the second, while still connected to "here"
is just bogus IMHO.
--strk;