Hello Angus, It's TCP. As far as I know, no visual components are updated since the sockets have their own client threads. (Multithreaded = TRUE and a client thread is started after the TWSocket instance is created. The first thing the client thread does in its Execute() method is use the ThreadAttach() method to switch the TWSocket's instance's message loop to the client thread. Then it enters a custom message pump that calls GetMessage() and does the usual translate/dispatch calls). Please see my reply to Francois that contains the thread's Execute() method.
Thanks, Robert --- On Mon, 2/6/12, Angus Robertson - Magenta Systems Ltd <an...@magsys.co.uk> wrote: > From: Angus Robertson - Magenta Systems Ltd <an...@magsys.co.uk> > Subject: Re: [twsocket] Problems with TWSocket and Skype > To: firstname.lastname@example.org > Date: Monday, February 6, 2012, 11:45 PM > > My application acts as a > middleman between an external WiFi webcam > > device relaying audio from its microphone to Skype's > input audio > > port and relaying audio from Skype's output audio port > to the > > webcam device's speaker. I am using ICS on both > sides now. > > TWSocket works just fine with the external WiFi webcam, > however, I > > can't make it work with Skype. The audio going to > Skype is > > frequently "jamming up" whereby the buffered byte count > rises > > quickly for short durations, enough to make the audio > stream going > > to Skype unusable (calling TWSocket.Send). The > socket receiving > > audio from Skype receives about 11 to 20 data > deliveries > > successfully and then just dies (OnDataAvailable stops > firing). > > The connection stays open, but Skype stops sending > audio > > permanently. > > Is this TCP or UDP? As François says, the most likely > issue is another > part of your application pre-empting ICS events, such as > updating visual > components. > > You can also try increasing the IP buffer sizes, which are > SocketRcvBufSize and SocketSndBufSize to 64K, which will > also speed up > data transfers. I've tested transfers at over > 250Mbit/sec. > > Angus > > -- > To unsubscribe or change your settings for TWSocket mailing > list > please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket > Visit our website at http://www.overbyte.be > -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be