Qt-interest Archive, October 2007
QTcpServer problem
Message 1 in thread
- Subject: QTcpServer problem
- From: Marco Bnà <bna.marco@xxxxxxxxx>
- Date: Mon, 15 Oct 2007 14:14:08 +0200
- Delivered-to: qt-interest@trolltech.com
- Disposition-notification-to: Marco Bnà <bna.marco@gmail.com>
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:return-receipt-to:from:to:subject:date:message-id:mime-version:content-type:x-mailer:thread-index:content-language:disposition-notification-to; bh=haamuAiAurgpKPDGwASJyM/ZWUOKj0RsEhR6yFYSq/g=; b=oq8gXMndXFwFwnUNXqs3WUx4gh1gCLlw69hO+mR4kZyr6YU6S6DyToQqd2zrurj/j7I6lgyDkpLMAun+RDnFPhCYFUJtQXtRE9iA0n/cBg1fbZfKkhbaMj+ojtL/ZSL9SKWqQEKtvzP/Ssf7u46oizhUz/g51fDBZs2wwNLEznk=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:return-receipt-to:from:to:subject:date:message-id:mime-version:content-type:x-mailer:thread-index:content-language:disposition-notification-to; b=SBvUHXPrM9h1Rkm+k1JD211waTdasOUrnpQjqunZXFysN4RxpAs8MyD0JRWCa7YEaC57jphhD6unE4BPBY8qB7oy16Agu+dw6wmwDOvi+XdosCUlYZ+TGQd2WBIWAVWXuwn9S2y2mWsoVw6UyS/kgCu+A0Us7lr2UmsnsT1chtI=
- List-help: <mailto:qt-interest-request@trolltech.com?subject=help>
- List-post: <mailto:qt-interest@trolltech.com>
- List-subscribe: <mailto:qt-interest-request@trolltech.com?subject=subscribe>
- List-unsubscribe: <mailto:qt-interest-request@trolltech.com?subject=unsubscribe>
- Resent-from: qt-interest@xxxxxxxxxxxxx
- Resent-message-id: <_Dl6fC.A.efB.Wm1EHB@esparsett>
- Resent-sender: qt-interest-request@xxxxxxxxxxxxx
- Thread-index: AcgPJOLchOpSQ5IgR9KltRlb0E0csA==
- To: <qt-interest@xxxxxxxxxxxxx>
Hi all. I?m using QtcpServer to receive audio stream data to send them using
IAXClient library. To problem is the following. I have redefined
incomingConnection function to do my job (I create an instance of a class
that extends QTcpSocket). If I define main.cpp as in examples provided with
qt demo I?m able to receive audio stream and record it. If I use this lib in
the main I have that tcpserver is created but incomingconnection is not
called so I can?t do what I want. What could it be?
Thanks,
Marco Bnà
Message 2 in thread
Can you post your code here?
On 10/15/07, Marco Bnà <bna.marco@xxxxxxxxx> wrote:
>
>
>
>
> Hi all. I'm using QtcpServer to receive audio stream data to send them using
> IAXClient library. To problem is the following. I have redefined
> incomingConnection function to do my job (I create an instance of a class
> that extends QTcpSocket). If I define main.cpp as in examples provided with
> qt demo I'm able to receive audio stream and record it. If I use this lib in
> the main I have that tcpserver is created but incomingconnection is not
> called so I can't do what I want. What could it be?
>
>
>
> Thanks,
>
>
>
> Marco Bnà
--
[ signature omitted ]
Message 3 in thread
Hi,
> Hi all. I’m using QtcpServer to receive audio stream data to send them
> using IAXClient library. To problem is the following. I have redefined
> incomingConnection function to do my job (I create an instance of a
> class that extends QTcpSocket). If I define main.cpp as in examples
> provided with qt demo I’m able to receive audio stream and record it. If
> I use this lib in the main I have that tcpserver is created but
> incomingconnection is not called so I can’t do what I want. What could
> it be?
What does "the main" look like?
Also what do you mean by "if I use this lib in the main [...]"? Do you mean
that adding a single call to a an IAXClient library breaks QTcpServer? Which
function is this?
Is by any chance IAXClient event-driven? If so, and since Qt is also
event-driven, you will have to merge two event loops to mix IAXClient and Qt
in the same process. It's probably easier to have two different processes and
use IPC (inter-process communication) techniques.
--
[ signature omitted ]