🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.internet.socket
Article #178

Re: VoIP implementation

#178
From: Carl Danley
Date: Mon, 30 Jun 2008 16:17
33 lines
2583 bytes
Is there a way to declare how big the packets are before they are sent? 
Also, I can code the majority of this, but the only thing i dont know how to 
do is send the file over the socket and open a stream to be recorded to... 
Any Ideas? Here is some coding that I would use for everything else:

//<-------BEGIN
TClientSocket * TCP = new TClientSocket();
//-----------------------------------------------------
TCP->Host = "something.com";
TCP->Port = 3980;
try
{
    TCP->Active = true;
}
catch(...)
{
    ShowMessage("Could not connect to server!");
};
//now i would need to insert the process to open a stream and start 
recording
//during the recording process, I would need to send a packet of XX size to 
the server component

//<-------END

I know that might be alot of potential coding, but I sure could use the 
help. Would it be possible to use the TMediaPlayer component to record to a 
stream and then send? or would I use an MCI Media Player?

"Jonathan Benedicto" <invalid@nobody.com> wrote in message 
news:48690105$1@newsgroups.borland.com...
> Correct, though probably would give performance issues. Voip requires very 
> low latency, so ideally you'd want to be sending lots of small packets. 
Technical Details
Message-ID: <48690725$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!feeder.news-service.com!feed.xsnews.nl!border-2.ams.xsnews.nl!news.isoc.lu!newsgroups.borland.com!not-for-mail
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>

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
Reply-To: "Carl Danley" <cdanley@codebyter.com>
From: "Carl Danley" <cdanley@codebyter.com>
Newsgroups: borland.public.cppbuilder.internet.socket
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>
In-Reply-To: <48690105$1@newsgroups.borland.com>
Subject: Re: VoIP implementation
Date: Mon, 30 Jun 2008 12:17:40 -0400
Lines: 34
Organization: CodeByter Software
MIME-Version: 1.0
Content-Type: text/plain;
 format=flowed;
 charset="iso-8859-1";
 reply-type=response
Content-Transfer-Encoding: 7bit
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Windows Mail 6.0.6000.16480
X-MimeOLE: Produced By Microsoft MimeOLE V6.0.6000.16545
NNTP-Posting-Host: 76.18.43.186
Message-ID: <48690725$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1214842661 76.18.43.186 (30 Jun 2008 09:17:41 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!feeder.news-service.com!feed.xsnews.nl!border-2.ams.xsnews.nl!news.isoc.lu!newsgroups.borland.com!not-for-mail