On Sun, Dec 20, 2009 at 08:12:39AM +0100, Danny Backx wrote:
> On Sat, 2009-12-19 at 08:12 -0800, Eric House wrote:
> > Problem with testing network code on emulators: they always have a
> > network connection.  On a real "Smartphone", I'm learning, you have to
> > be prepared to handle the WSAENETDOWN error by initiating a network
> > connection.
> > 
> > Initial reading on MSDN says this is done using the Connection
> > Manager, and that there's no support for that in cegcc.  (Somebody
> > tried to contribute it a couple of years back but dropped the ball
> > when asked to verify the copyright situation.)
> > 
> > Is there another way to establish a connection?  How do the rest of
> > you bring up a network connection on a cell phone?
> 
> http://msdn.microsoft.com/en-us/magazine/dd263096.aspx has some sample
> code. Looks like only very few constants are unknown, maybe guessing
> them is feasible.

Thanks.  I've done a first pass just adding support to my own code and
loading the necessary procs by name.  It works well enough for beta
(the phase my app's in).  I checked in as a single submission in case
anybody else wants to follow what was involved.

http://xwords.svn.sourceforge.net/viewvc/xwords?view=rev&revision=2854

I've made notes of the URLs where I found stuff that wasn't on MSDN.
Eventually I'll get this turned into a file and patches I can submit
to cegcc (and hopefully get rid of the proc addr lookup.)

Thanks!

--Eric
-- 
******************************************************************************
* From the desktop of: Eric House, eeho...@eehouse.org                       *
*       Crosswords 4.4 for WinMobile plays over the internet: xwords.sf.net  *
******************************************************************************

------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
_______________________________________________
Cegcc-devel mailing list
Cegcc-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cegcc-devel

Reply via email to