Hello, I am at the initial stage of developing applications for palm OS.I wonder if there is any SDK existing for the palm OS 5.2 devices.
Is there any separate 5.2 SDK existing for these devices??. If so ,can i know the difference between the 5.o SDK and 5.2 SDK? Thanx in Advance Best Regards Anil -----Original Message----- From: Palm Developer Forum digest [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 16, 2003 12:31 PM To: palm-dev-forum digest recipients Subject: palm-dev-forum digest: July 15, 2003 PALM-DEV-FORUM Digest for Tuesday, July 15, 2003. 1. Re: CW9: generating a code resouce only. 2. Re: debugging on the device CW9 3. Re: CW9: generating a code resouce only. 4. After I capture photo via Zire71 5. palm battery 6. SSL API code sample? 7. FEp 8. Re: CodeWarrior to GCC 9. segment main is greater... 10. SDK 5 R2 11. NetLib System use only functions 12. Re: BmpGlueSetTransparentValue 13. RE: segment main is greater... 14. App calling SysFatalAlert 15. Re: SDK 5 R2 16. pol, prc-tools and static library 17. Re: Write Text in Multiple Line 18. app to take orders and sync with website.. 19. Re: debugging on the device CW9 20. unexpected coordinate system 21. Re: SDK 5 R2 22. RE: FEp 23. Re: CodeWarrior to GCC 24. How does ToDo.c in sdk5 edit table text field in place? 25. NetLib: Nonblocking socket calls 26. Re: pol, prc-tools and static library 27. Re: NetLib: Nonblocking socket calls ---------------------------------------------------------------------- Subject: Re: CW9: generating a code resouce only. From: Ben Combee <[EMAIL PROTECTED]> Date: Tue, 15 Jul 2003 03:16:39 -0500 X-Message-Number: 1 At 09:51 PM 7/12/2003, Eric VERGNAUD wrote: >le 13/07/03 4:33, Konstantin Klyatskin =E0 [EMAIL PROTECTED] a =E9crit= : > > > Ben, > > > > I have set the project as: Linker: "Palm OS 68K", Pre/Post-linker:= "None", > > Project Type as "68K Code Resource". It builds me PRC format file with a > > single code resource. That's OK, but is there any way to generate only a > > real code resource as a binary file rather than the same resource= wrapped > > into PRC format file? > > > > Thank you. > > > > -- > > Konstantin > > > >With these settings, the file should be a MacOS resource file containing= the >resource, not a PRC, since the job of the post linker is mainly to convert >that file from MacOS format to PalmOS format, plus some other resource >related stuff. You can extract the resource using ResEdit or Resorcerer on= a >Macintosh. The Palm OS 68K Linker will merge the contents of a PRC file into antother= =20 PRC file, so you can just output the code resource as a PRC, then add that= =20 output PRC to the file list for your main PRC file. Eric, the Palm OS 68K linker doesn't deal with Mac OS resource files at all= =20 -- it supports output to LIB and PRC files, and takes as input PRC, RO,=20 BIN, and object files (sometimes supplied in intermediate form through=20 associated compilers). --=20 Ben Combee <[EMAIL PROTECTED]> CodeWarrior for Palm OS technical lead Palm OS programming help @ www.palmoswerks.com=20 ---------------------------------------------------------------------- Subject: Re: debugging on the device CW9 From: Ben Combee <[EMAIL PROTECTED]> Date: Tue, 15 Jul 2003 03:19:27 -0500 X-Message-Number: 2 At 05:09 PM 7/14/2003, Brad Figler wrote: >Well, I figured it out. > >It appears that my drop down for "Connect to" has 4 options (it previously >had 2). > >The first option is simply <blank> where <blank> := Emulator >The second option is simply <blank> where <blank> := device >The third option is Emulator where Emulator := nothing >The fourth option is Device where Device := nothing > >Does anyone know how to fix the drop down? Is there a registry entry that >needs to be cleared or something like that? It sounds like you've got a corrupted pref panel DLL. Are you running a pre-release version of the CW tools -- there was a bug in an early 9.2 beta that looked like that :) Try restoring the PalmDebugger.dll in bin\plugins\Preference Panels with one from a virgin V9 installation. -- Ben Combee <[EMAIL PROTECTED]> CodeWarrior for Palm OS technical lead Palm OS programming help @ www.palmoswerks.com ---------------------------------------------------------------------- Subject: Re: CW9: generating a code resouce only. From: Eric VERGNAUD <[EMAIL PROTECTED]> Date: Tue, 15 Jul 2003 10:42:57 +0200 X-Message-Number: 3 le 15/07/03 10:16, Ben Combee =E0 [EMAIL PROTECTED] a =E9crit=A0: > Eric, the Palm OS 68K linker doesn't deal with Mac OS resource files at a= ll > -- it supports output to LIB and PRC files, and takes as input PRC, RO, > BIN, and object files (sometimes supplied in intermediate form through > associated compilers). >=20 > --=20 So this is new with CW 9 I guess ? ------------------------------- Eric VERGNAUD - JLynx Software Cutting-edge technologies and services for software companies web: http://www.jlynx.com ------------------------------- ---------------------------------------------------------------------- Subject: After I capture photo via Zire71 From: "Miken" <[EMAIL PROTECTED]> Date: Tue, 15 Jul 2003 17:07:23 +0800 X-Message-Number: 4 please see the following code: CamLibBitmapInfoType info; CamLibControl(gCamLibRefNum, kCamLibCtrlCaptureGetBitmapInfo,(void*)&info); the photo has stored on info struct.I want convert it to bmp or gif,please help me,and thanks. I want to get zire photo conduit's source code,and where do I get from? Thanks. ---------------------------------------------------------------------- Subject: palm battery From: Mohammad Afshari <[EMAIL PROTECTED]> Date: Tue, 15 Jul 2003 03:13:18 -0700 (PDT) X-Message-Number: 5 hello this might not be the location to ask this question so i appologize, but i couldnt find a better way to get the anwer as soon as possible. i have a tungsten W, and as we know the battery is built in, so my question is whats the life time of this battery and can we change it if the battery doesnt charge properly after a while? Best Regards Mohammad Afshari __________________________________ Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! http://sbc.yahoo.com ---------------------------------------------------------------------- Subject: SSL API code sample? From: "rajan" <[EMAIL PROTECTED]> Date: Tue, 15 Jul 2003 18:15:12 +0530 X-Message-Number: 6 Is there any code sample available explaining the SSL API usage(apart from the one in the companion)? thanks & regards, rajan ---------------------------------------------------------------------- Subject: FEp From: "Vladimir Marinov" <[EMAIL PROTECTED]> Date: Tue, 15 Jul 2003 15:47:16 +0300 X-Message-Number: 7 Fep don't work on 4.0 ,4.1,5.0. Are you sure Fep work on some devices. ---------------------------------------------------------------------- Subject: Re: CodeWarrior to GCC From: "Davi Lopes Carvalho" <[EMAIL PROTECTED]> Date: Tue, 15 Jul 2003 11:01:05 -0300 X-Message-Number: 8 The problem is I hava a code here that works when compiling with CodeWarrior but not works when compiling with GCC. With GCC occurrs one "bus error" in the emulator and in the palm occurrs a Fatal Exception. I think that the problem is in this function: static char *ReturnFormatFone(char *fone) { char *phone; char n1[1]; char n2[1]; char *PtrPh; char *dig; int i; phone=3DReturnTextInvert(ReturnDDD()); i=3D0; do{ n1[1]=3Dfone[i]; n2[1]=3Dfone[i+1]; dig=3DReturnDecByChar(n2[1], n1[1]); PtrPh=3DMemPtrNew(StrLen(phone) + StrLen(dig) + 1); //The error ocurrs right here... StrCopy(PtrPh, phone); StrCat(PtrPh, dig); phone=3DPtrPh; i=3Di+2; } while (i<=3DStrLen(fone)-2); return phone; } Any of you knows a solution for this?! Remeber that this error occurs just when compiling with GCC. With CodeWarrior this application works normally. Thanks, Davi Carvalho > > Any of you know how to convert a code warrior project to > > a gcc one? > > if the codewarrior project does not use pilrc resources , you have to > recreate them or use some third party tool (for example falch.net) to import > the cw resources. you don't have to change the code, on ly if there's asm > code or #pragmas. if it is a big project, you may also have to split the > code into sections (segments). > > markus dresch (www.palmside.com) > > > > -- > For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/supp ort/forums/ > __________________________________________________________________________ Acabe com aquelas janelinhas que pulam na sua tela. AntiPop-up UOL - =C9 gr=E1tis! http://antipopup.uol.com.br/ ---------------------------------------------------------------------- Subject: segment main is greater... From: "Dave Eyler" <[EMAIL PROTECTED]> Date: Tue, 15 Jul 2003 11:15:50 -0400 X-Message-Number: 9 Hi all, I'm recently enabled macs debugs symbol so I would be able to debug some memory leaks, and I'm getting the segment main is greater than 64K error, but my main segment is only 52K. I have a bunch of SSL libraries that are over 1 MB, might that be the problem? How can I get around this? Thanks in advance Dave Eyler Medix Resources ---------------------------------------------------------------------- Subject: SDK 5 R2 From: "Chris Apers" <[EMAIL PROTECTED]> Date: Tue, 15 Jul 2003 17:29:53 +0200 X-Message-Number: 10 Hi, Is it possible to install this SDK with CW 9 ? Thanks Chris ---------------------------------------------------------------------- Subject: NetLib System use only functions From: "Gearoid Murphy" <[EMAIL PROTECTED]> Date: Tue, 15 Jul 2003 16:43:21 +0100 X-Message-Number: 11 I would very much like to devise my own means by which a user could view a list of the available network configurations and select the one to be made active (I don't want to go to the Network preferences panel). The functions NetLibConfigList and NetLibConfigMakeActive look perfect to achieve this but they are listed as "System Use Only" functions. It probably sounds silly but I'm a little unclear about how to treat these functions. Does the "System Use Only" tag mean that the functions are to be avoided at all costs or is it a warning that care must be taken as system settings are being changed? Is there a means by which they can be used properly? Has anyone used these functions to achieve the same sort of funtionality? Regards, Ger _________________________________________________________________ Help STOP SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail ---------------------------------------------------------------------- Subject: Re: BmpGlueSetTransparentValue From: "Chris Apers" <[EMAIL PROTECTED]> Date: Tue, 15 Jul 2003 17:44:31 +0200 X-Message-Number: 12 Any answer ? > Hi, > > I use BmpGlueSetTransparentValue to set/unset transparency on a bitmap. > When i want to unset transparent index i use: > > BmpGlueSetTransparentValue (bmpP, kTransparencyNone); > > But i have a SysFatalAlert : > AccessorGlue.cp, Line 463, BmpSetTransparentValue: invalid transparent > color. > > So how can i unset the transparent flag ? > > Thx > Chris > ---------------------------------------------------------------------- Subject: RE: segment main is greater... From: "Jeff Ishaq" <[EMAIL PROTECTED]> Date: Tue, 15 Jul 2003 08:51:25 -0700 X-Message-Number: 13 > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of Dave Eyler > Sent: Tuesday, July 15, 2003 8:16 AM > To: Palm Developer Forum > Subject: segment main is greater... > > > Hi all, I'm recently enabled macs debugs symbol so I would be > able to debug some memory leaks, and I'm getting the segment > main is greater than 64K error, but my main segment is only > 52K. If you're getting this 52K information from the "Segments" tab of Codewarrior, it is not generally very accurate. One thing you can do is use a utility like par or PRCExplorer to investigate the -actual- segments in the resulting PRC and see for certain how large the segments are. To get around this problem, simply add a new segment to your project and move some modules (e.g., .c or .cpp files) over to it. Two things to keep in mind while doing this: 1) You must keep the PalmOS runtime library in your first segment ("PalmOSRuntime_2i_A5.lib"), I think, and any module (.c or .cpp file) that may be called to processes a launch code, as well as the module that implements PilotMain() as well. 2) Once you move modules around to the new segment, you may get linker errors complaining about 16-bit offsets. This means shuffle modules around in their segments to try and make them go away. Sometimes, adding a third segment and moving modules to it is the best way to accomplish this. > I have a bunch of SSL libraries that are over 1 MB, > might that be the problem? How can I get around this? Well, static link libraries show their entire size in the 'segments' tab, but as far as I know, only the portions of the library that could be executed by your application are ultimately linked (copied) into your PRC. So it's impossible to tell the true size of the segments unless you make the PRC and then explore it, after the fact, with par or PRCExplorer. If a segment is too large as a result of including the SSL static link libraries, to get around it, you must shuffle modules around as in step 2) to prevent any one segment from being > 64K. -Jeff Ishaq ---------------------------------------------------------------------- Subject: App calling SysFatalAlert From: "Stark Matthews" <[EMAIL PROTECTED]> Date: Tue, 15 Jul 2003 12:18:52 -0400 X-Message-Number: 14 I followed the directions in the Palm OS Bible, and the PilRC documentation. I think I did everything right, but when I load my app into POSE and run it I get a debug error. call SysFatalAlert with the message: "HwrRes.c, Line:69, Form rsrc not found". Can someone tell me what causes this? Also, is there a list of these messages and their common causes somewhere? Thanks for your time. ---------------------------------------------------------------------- Subject: Re: SDK 5 R2 From: Ben Combee <[EMAIL PROTECTED]> Date: Tue, 15 Jul 2003 14:01:03 -0500 X-Message-Number: 15 At 10:29 AM 7/15/2003, Chris Apers wrote: >Hi, > >Is it possible to install this SDK with CW 9 ? Yes. Have you tried to install it and had a problem? -- Ben Combee <[EMAIL PROTECTED]> CodeWarrior for Palm OS technical lead Palm OS programming help @ www.palmoswerks.com ---------------------------------------------------------------------- Subject: pol, prc-tools and static library From: Philip Streck <[EMAIL PROTECTED]> Date: Tue, 15 Jul 2003 15:32:53 -0400 X-Message-Number: 16 I've been interested in utilizing the pol library with prc-tools. I have been able to successfully compile all of the source files with some minor modifications. I was planning on using the same code segments as pol does with cw. But then i got to the point of creating the static libraries with prc-tools and have been unable to find any information. Has anyone had experience on creating static libraries with prc-tools? If it is even possible. My other thought on it was to create a multisegment app with two pol segments. Any thoughts, comments, suggestions? Thanks, Phil ---------------------------------------------------------------------- Subject: Re: Write Text in Multiple Line From: Ken Krugler <[EMAIL PROTECTED]> Date: Tue, 15 Jul 2003 13:28:35 -0700 X-Message-Number: 17 >I found your mail and name from this milis, I want to ask you how to >write text like this bellow : > >"Hei I learned to write text in multiple line but. like this" > >if I use WinDrawChars() it's cut off because the text is too wide. > >I've been read about TextWrap or else but I don't know how to use it. > >Can you please give me a simple code how to use Wrap text? Something like this (warning, uncompiled and untested code ahead): void TextBox(const Char* textP, const RectangleType* bounds) { // Assume font is set correctly on entry. Int16 lineHeight = FntLineHeight(); Coord curY = bounds->topLeft.y; Coord maxY = curY + bounds->extent.y - lineHeight; // Wrap until there's no more text, or we can't draw a full // (unclipped) line because we've run out of vertical space. while ((*textP != '\0') && (curY <= maxY)) { UInt16 bytesOnLine = FntWordWrap(textP, bounds->extent.x); WinDrawChars(textP, bytesOnLine, bounds->topLeft.x, curY); curY += lineHeight; textP += bytesOnLine; } } -- Ken -- Ken Krugler TransPac Software, Inc. <http://www.transpac.com> +1 530-470-9200 ---------------------------------------------------------------------- Subject: app to take orders and sync with website.. From: "Aric Caley" <[EMAIL PROTECTED]> Date: Tue, 15 Jul 2003 14:06:13 -0700 X-Message-Number: 18 I need to aquire or write a seemingly simple palm application: A basic order logging program (customer name, etc, product qty, etc) that can sync with an e-com website. All it needs to do is simply take the orders, save them, and when the palm is connected to the computer it sends the orders up to the website, perhaps in XML or as an HTTP POST or GET or whatever. I'm not sure how to go about this. Can it be done with the web clipping stuff? Or do I need to write a full blown palm os application? Do I have to write my own conduit? Are there any generic conduits that can just send data to a website? ---------------------------------------------------------------------- Subject: Re: debugging on the device CW9 From: "Brad Figler" <[EMAIL PROTECTED]> Date: Tue, 15 Jul 2003 14:12:18 -0700 X-Message-Number: 19 Makes sense, I am running a beta version of CW that helped with projects using expanded mode! I will live with it until the highly anticipated 9.x updated comes out =) Thanks, Brad "Ben Combee" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > At 05:09 PM 7/14/2003, Brad Figler wrote: > >Well, I figured it out. > > > >It appears that my drop down for "Connect to" has 4 options (it previously > >had 2). > > > >The first option is simply <blank> where <blank> := Emulator > >The second option is simply <blank> where <blank> := device > >The third option is Emulator where Emulator := nothing > >The fourth option is Device where Device := nothing > > > >Does anyone know how to fix the drop down? Is there a registry entry that > >needs to be cleared or something like that? > > It sounds like you've got a corrupted pref panel DLL. Are you running a > pre-release version of the CW tools -- there was a bug in an early 9.2 beta > that looked like that :) Try restoring the PalmDebugger.dll in > bin\plugins\Preference Panels with one from a virgin V9 installation. > > -- > Ben Combee <[EMAIL PROTECTED]> > CodeWarrior for Palm OS technical lead > Palm OS programming help @ www.palmoswerks.com > > > ---------------------------------------------------------------------- Subject: unexpected coordinate system From: Brandon Smith <[EMAIL PROTECTED]> Date: Tue, 15 Jul 2003 14:40:34 -0700 X-Message-Number: 20 I am working on my first high res app, and menu.c says unexpected coordinate system when I open a menu. The relevant code in my form open event handler: WinScreenMode (winScreenModeSet, NULL, NULL, &depth, NULL); WinSetCoordinateSystem (kCoordinatesDouble); win = WinCreateOffscreenWindow(160, 160, screenFormat, &error); destWin = FrmGetWindowHandle( frmP); What am I doing wrong here? Brandon ---------------------------------------------------------------------- Subject: Re: SDK 5 R2 From: "Palm" <[EMAIL PROTECTED]> Date: Tue, 15 Jul 2003 18:43:05 -0300 X-Message-Number: 21 I do it manualy seems it's working fine. Ricardo ----- Original Message ----- From: "Chris Apers" <[EMAIL PROTECTED]> To: "Palm Developer Forum" <[EMAIL PROTECTED]> Sent: Tuesday, July 15, 2003 12:29 PM Subject: SDK 5 R2 > Hi, > > Is it possible to install this SDK with CW 9 ? > > Thanks > Chris > > -- > For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/ > ---------------------------------------------------------------------- Subject: RE: FEp From: "Ezekiel Sanborndeasis" <[EMAIL PROTECTED]> Date: Tue, 15 Jul 2003 15:09:22 -0700 X-Message-Number: 22 which FEP?=20 -Ezekiel Sanborn de Asis PalmSource Developer Support *************************** Fep don't work on 4.0 ,4.1,5.0. Are you sure Fep work on some devices. ---------------------------------------------------------------------- Subject: Re: CodeWarrior to GCC From: "Alan Ingleby" <[EMAIL PROTECTED]> Date: Wed, 16 Jul 2003 10:43:00 +1000 X-Message-Number: 23 I take it that your functions ReturnTextInvert and ReturnDecByChar are allocating memory, and returning a pointer? Alan "Davi Lopes Carvalho" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] The problem is I hava a code here that works when compiling with CodeWarrior but not works when compiling with GCC. With GCC occurrs one "bus error" in the emulator and in the palm occurrs a Fatal Exception. I think that the problem is in this function: static char *ReturnFormatFone(char *fone) { char *phone; char n1[1]; char n2[1]; char *PtrPh; char *dig; int i; phone=ReturnTextInvert(ReturnDDD()); i=0; do{ n1[1]=fone[i]; n2[1]=fone[i+1]; dig=ReturnDecByChar(n2[1], n1[1]); PtrPh=MemPtrNew(StrLen(phone) + StrLen(dig) + 1); //The error ocurrs right here... StrCopy(PtrPh, phone); StrCat(PtrPh, dig); phone=PtrPh; i=i+2; } while (i<=StrLen(fone)-2); return phone; } Any of you knows a solution for this?! Remeber that this error occurs just when compiling with GCC. With CodeWarrior this application works normally. Thanks, Davi Carvalho > > Any of you know how to convert a code warrior project to > > a gcc one? > > if the codewarrior project does not use pilrc resources , you have to > recreate them or use some third party tool (for example falch.net) to import > the cw resources. you don't have to change the code, on ly if there's asm > code or #pragmas. if it is a big project, you may also have to split the > code into sections (segments). > > markus dresch (www.palmside.com) > > > > -- > For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/supp ort/forums/ > __________________________________________________________________________ Acabe com aquelas janelinhas que pulam na sua tela. AntiPop-up UOL - � gr�tis! http://antipopup.uol.com.br/ ---------------------------------------------------------------------- Subject: How does ToDo.c in sdk5 edit table text field in place? From: "Aron Preseley" <[EMAIL PROTECTED]> Date: Tue, 15 Jul 2003 22:18:28 -0500 X-Message-Number: 24 Hi, I'm trying to acheive what I think ToDo.c (from the example in the sdk5) is doing to edit-in-place the description field of its table. Ie, when a user modifies the text column of the ToDo table, the changes to the text are made directly in the database. But I can't figure out how ToDo.c is accomplishing this! The callback function ListViewSaveDescription(), which is a TableSaveDataFuncType, does NOT save the text string to the database, it does other things. Can anyone explain to me the logic of how ToDo.c is saving the text that users enter or modify in the description column? Thank you for any light you can shed on this; there seems to be some groovy trick here which is escaping me. Aron. _________________________________________________________________ Protect your PC - get McAfee.com VirusScan Online http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 ---------------------------------------------------------------------- Subject: NetLib: Nonblocking socket calls From: "Murad Kakabayev" <[EMAIL PROTECTED]> Date: Wed, 16 Jul 2003 10:55:36 +0500 X-Message-Number: 25 Hello everybody, I develop network application for PalmOS 4.0 and higher. For more frendly UI I want to use non-blocking socket calls. Here are my steps: 1) Create socket 2) make socket nonblocking NetLibSocketOptionSet(netSocketOptSockNonBlocking) 3) connect socket - NetLibSocketConnect - got netErrWouldBlock error 4) call NetLibSelect(&read, &write, &except) 5) analize result of NetLibSelect It works on PalmOS Emulator (OS 4.0) and PalmOS Simulator (OS 5.2) but don't work on real device (I have Tungsten T). On TT NetLibSelect returns immideately regardless of connection result (success, timeout,rejected). It's not a big problem if I can recognize socket state (if it connected). But I did not find any approach to check the socket. Usually I use getsockopt(SO_ERROR) on other platforms, but on PALM OS I have strange result for analog of getsockopt - NetLibSocketOptionGet (netSocketOptSockErrorStatus) 1) PALMOS emulator wanted 4-byte buffer for result and returns WIN32 Network error code (10XXX) :-) 2) PALMOS simulator wanted 2-byte buffer and returns netErrUnimplemented 3) TungstenT wanted 2-byte buffer and returns errNone So I want make either NetLibSelect or NetLibSocketOptionGet (netSocketOptSockErrorStatus) work correct regardless of PalmOS version and design. Or I want recognize if the socket connected. Any ideas? Thank you, Murad Kakabayev ---------------------------------------------------------------------- Subject: Re: pol, prc-tools and static library From: "Markus Dresch" <[EMAIL PROTECTED]> Date: Wed, 16 Jul 2003 08:15:13 +0200 X-Message-Number: 26 > Has anyone had experience on creating static libraries > with prc-tools? If it is even possible. m68k-palmos-ar rcs libMyLibName.a MyCompiledObj.o static library names have to be in this format: lib*.a markus dresch (www.palmside.com) ---------------------------------------------------------------------- Subject: Re: NetLib: Nonblocking socket calls From: Greg Lutz <[EMAIL PROTECTED]> Date: Tue, 15 Jul 2003 23:31:37 -0700 X-Message-Number: 27 At 10:55 PM 7/15/2003, Murad Kakabayev wrote: >Hello everybody, > >I develop network application for PalmOS 4.0 and higher. >For more frendly UI I want to use non-blocking socket calls. >Here are my steps: >1) Create socket >2) make socket nonblocking >NetLibSocketOptionSet(netSocketOptSockNonBlocking) >3) connect socket - NetLibSocketConnect - got netErrWouldBlock error >4) call NetLibSelect(&read, &write, &except) >5) analize result of NetLibSelect Well, we took a somewhat different approach: use nonblocking sockets, but don't use NetLibSelect(). I did some experimentation with select(), and never got it to do anything useful. Instead, we take advantage of netErrWouldBlock returns from socket read and write calls to look for user input. It took much fiddling to get the timers tuned right, remaining reasonably responsive to user actions while not bogging down the data transfer. Our main test configuration was TCP/IP over a standard cell phone connection (a Kyocera 6035 Smartphone, Palm OS 3.5). If details of this approach are of interest, let me know, and I can send you more. --- END OF DIGEST -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/ -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
