Article View: borland.public.cppbuilder.internet.socket
Article #183Re: VoIP implementation
From: Bob Gonder
Date: Mon, 30 Jun 2008 18:18
Date: Mon, 30 Jun 2008 18:18
30 lines
2055 bytes
2055 bytes
Carl Danley wrote: >Would you happen to know where I could find some samples for these >functions? like a how-to or something, just need something to look at and >understand No examples, but the help starts here. (Mobile and CE docs, but should be ok for regular?) http://msdn.microsoft.com/en-us/library/aa909799.aspx Looks like waveInOpen() waveInPrepareHeader() waveInAddBuffer(); waveInStart(); You can pass a callback function to waveInOpen that is to process the buffers when they fill. It would also make new buffers (recycled) available to be filled. waveInPrepareHeader() sets the buffer size. I would assume you could (and would want to) add multiple buffers so you could TCP from one while waveIn is filling the next. I would also add that you would likely wish to use TCP_NODELAY int t = TRUE; setsockopt( mysocket, IPPROTO_TCP, TCP_NODELAY, (char*)&t, sizeof(t) );
Technical Details
Message-ID:
<ui6i6495t29ctbf0mrrd88mrirnjr3pl8f@4ax.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!news.isoc.lu!newsgroups.borland.com!not-for-mailReferences:
<4868387c@newsgroups.borland.com> <48683aa5$1@newsgroups.borland.com> <4868458f$1@newsgroups.borland.com> <48684d77$1@newsgroups.borland.com> <4868f8e6$1@newsgroups.borland.com> <4868f9cc$1@newsgroups.borland.com> <48690105$1@newsgroups.borland.com> <48690725$1@newsgroups.borland.com> <486908a0$1@newsgroups.borland.com> <486911c4$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,be62032270e223aa X-Google-Attributes: gid11508e,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit From: Bob Gonder <none@nowhere.invalid> Newsgroups: borland.public.cppbuilder.internet.socket Subject: Re: VoIP implementation Date: Mon, 30 Jun 2008 11:18:18 -0700 Message-ID: <ui6i6495t29ctbf0mrrd88mrirnjr3pl8f@4ax.com> References: <4868387c@newsgroups.borland.com> <48683aa5$1@newsgroups.borland.com> <4868458f$1@newsgroups.borland.com> <48684d77$1@newsgroups.borland.com> <4868f8e6$1@newsgroups.borland.com> <4868f9cc$1@newsgroups.borland.com> <48690105$1@newsgroups.borland.com> <48690725$1@newsgroups.borland.com> <486908a0$1@newsgroups.borland.com> <486911c4$1@newsgroups.borland.com> X-Newsreader: Forte Agent 1.93/32.576 English (American) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 67.77.147.203 X-Trace: newsgroups.borland.com 1214849895 67.77.147.203 (30 Jun 2008 11:18:15 -0700) Lines: 32 Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!news.isoc.lu!newsgroups.borland.com!not-for-mail