Trolltech Home | Qt-interest Home | Recent Threads | All Threads | Author | Date
All threads index page 3

Qt-interest Archive, October 2007
QTcpServer problem


Message 1 in thread

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 ]