To receive the data you can use the socket notifications. In the palm database there 
is a same code ( New Socket Notification in Palm OS Garnet, version 5.4.0. ). These 
notifications are something similar as a interruption attention system. Each time rhat 
a packet arrives the system will call the function you have written to receive the 
message and eventually process them, aknoledge them..... Tou dont have to worry in 
your "main thread" about calling this function. The OS does it for you.
In order to play the received data you will have to use the sound system. I do not 
know much about that

-----Message d'origine-----
De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] De la part de Gaurav Mengi
Envoyé : jeudi 10 juin 2004 12:25
À : Palm Developer Forum
Objet : Re: Multi Threading in Palm OS!






yaa i'm using Netlib..I'm using a  nonblocking socket.
Actually the confusion is
* how to simultaneously record and stream data.!! *secondly..how to play the received 
data simulataneously as its arriving.

I've already made a recorder which is working fine!!






******************************************
    ----- Original Message ----- 
From: "zze-URIA RECIO Pedro FTRD/DMR/ISS" <[EMAIL PROTECTED]>
To: "Palm Developer Forum" <[EMAIL PROTECTED]>
Sent: Thursday, June 10, 2004 3:32 PM
Subject: RE : Multi Threading in Palm OS!


> Are you using sockets (netlib) to receive your messages?
>
>
> -----Message d'origine-----
> De : [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] De la part de Gaurav Mengi
> Envoyé : jeudi 10 juin 2004 11:58
> À : Palm Developer Forum
> Objet : Re: Multi Threading in Palm OS!
>
>
> hi Friends,
>                  I'm making Voice Chat application.
> What I'm doing is:
> *First record the message and then send.
> *At the receiving side I'm able to get only one packet and others are
lost.
>
> Is it possible that using some Multithreading features..i can spawn 
> some
process which handles the streaming of outgoing data and incoming data.
>
> Or can ne one suggest some thing related to this application..so that 
> data
shud appear stream properly.
>
>
> ----- Original Message -----
> From: "Matthew Bevan" <[EMAIL PROTECTED]>
> To: "Palm Developer Forum" <[EMAIL PROTECTED]>
> Sent: Wednesday, June 09, 2004 11:33 PM
> Subject: RE: Multi Threading in Palm OS!
>
>
> > I think I'm seeing confusion between the terms multi-thread and
> multi-task.
> > PalmOS, even early versions, had a kernel that supported 
> > multi-tasking for system use only, due to the license restrictions 
> > in place by the company
> who
> > wrote it.  No application had system-supported multi-threading. 
> > PalmOS 6+ will have full multi-tasking and multi-threading 
> > capability, as the kernel was pretty much re-written from scratch.
> >
> > PalmOS 5 creates a new system task when streaming audio, allowing 
> > music players to continue to play in the background.
> >
> > You can support non-preemptive multi-threading in your own 
> > application,
> but
> > that requires playing with system registers and the instruction 
> > pointer a LOT.  I wrote a non-preemptive threading library for Turbo 
> > Pascal 3 long, long ago, but have never found a particular need for 
> > that feature on the Palm.  Nil events are good enough for me. ^_^
> >
> > -----Original Message-----
> > From: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED] On Behalf Of 
> > zze-URIA RECIO Pedro FTRD/DMR/ISS
> > Sent: Wednesday, June 09, 2004 9:50 AM
> > To: Palm Developer Forum
> > Subject: RE : Multi Threading in Palm OS!
> >
> > Palm OS 5 is multithread in a very loww OS level but it is 
> > MONOTHREAD for
> a
> > user application:
> > However you can simulate a relative multithread:
> > * by using alarms, the problem is that the finest alarm granularity 
> > is 1 second. I don't know if that suits you
> > * by enabling socket notifications if your application uses sockets. 
> > This way, your thread does not care about reading socket. It is an 
> > OS internal thread who does it.
> >
> > Pedro URIA-RECIO
> >
> > R&D Engineer - France Telecom R&D (FTR&D/DMR/SRS) Satellite Services 
> > and Networks Laboratory 38-40 rue du Général Leclerc, 92794
> Issy-Les-Moulineaux
> > Cedex 9 FRANCE
> >
> > Tél:  +33 (0) 1 45 29 66 98
> > Fax:  +33 (0) 1 45 29 45 34
> > E-mail: [EMAIL PROTECTED]
> >
> >
> > --
> > 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/
> >
> >
>
>
>
> --
> 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/
>
>



-- 
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/

Reply via email to