Hi,
1) You do tipc_send2name(ref,name(1,1)) with an empty
message to establish the connection to
the topology server.
2) The server will respond with an empty message, which
will fulfil the connection. Just ignore this message.
No need to do connect2port(),it is already done by TIPC.
3) Then you do tipc_send() on the new connection, with a message
containing your subscription.
4) Wait for messages containing events.
Regards
///jon
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
Erich Focht
Sent: February 22, 2008 1:30 PM
To: Stephens, Allan
Cc: [email protected]
Subject: Re: [tipc-discussion] port name -> port_id ?
Hi Allan,
sorry, just saw your reply. Actually I was sending my subscription info
in the first send2name, but none of the callbacks gets alive. You say I
should at least get an empty message for the handshake...
By the way, this is with the vanilla 2.6.24 kernel (what tipc version is
that, approximately?).
Best regards,
Erich
On Freitag 22 Februar 2008, Stephens, Allan wrote:
> Hi Erich:
>
> If you're trying to establish a connection to the TIPC topology server
> (which uses port name {1,1}), you want to use tipc_send2name() rather
> than tipc_connect2port().
>
> The most basic approach is to send a zero length message, after which
> the topology server will respond with a zero length message that
> completes the connection handshaking (i.e. automatically calling
> tipc_connect2port() for you). You can then use tipc_send() to send
> your subscription requests to the topology server.
>
> Alternatively, if you only need to send a single subscription, you can
> send it when you do the initial tipc_send2name() call.
>
> Regards,
> Al
------------------------------------------------------------------------
-
This SF.net email is sponsored by: Microsoft Defy all challenges.
Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
tipc-discussion mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tipc-discussion
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
tipc-discussion mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tipc-discussion