Skip navigation.
Home
The QNX Community Portal

View topic - Receiving _PULSE_CODE_DISCONNECT through PtAppAddInput

Receiving _PULSE_CODE_DISCONNECT through PtAppAddInput

Isn't the name clear?

Receiving _PULSE_CODE_DISCONNECT through PtAppAddInput

Postby Torophal » Tue Apr 24, 2007 1:25 pm

Hi,

how is it possible to receive a _PULSE_CODE_DISCONNECT pulse by registering a message handler through PtAppAddInput()?

As server I call the following functions to create a channel:

name_attach_t *pNa;
pNa = name_attach ( NULL, "myname", 0 );
PhChannelAttach ( pNa->chid, -1, NULL );
PtAppAddInput ( NULL, 0, MyMsgHandler, NULL );

After a client has connected through name_open(), I slay the client but no disconnect notification pulse is forwarded to my message handler.

Client and server are running at the same machine. GNS is not runing.

What am I doing wrong?

Thx for any hint!

Best regards.
Torophal
Torophal
New Member
 
Posts: 1
Joined: Tue Apr 24, 2007 1:17 pm

Return to GUI Programming

Who is online

Users browsing this forum: Majestic-12 [Bot] and 2 guests