[tipc-discussion] port name - port_id ?

2008-02-22 Thread Erich Focht
Hello, with the native interface I'd like to do (inside a kernel module): tipc_connect2port(myref, subscr_service); I know the target port name {1, 1} but how can I get the port_id, which is required as argument to tipc_connect2port? The function tipc_nametbl_translate isn't exported...

Re: [tipc-discussion] port name - port_id ?

2008-02-22 Thread Horvath, Elmer
Hi, Often, the tipc_connect2port() routine is called in a callback routine. The one I've used is after getting a connection request from a remote. The steps would be: Register the callback when a port is created with the tipc_createport() call. Some of the callbacks are: tipc_msg_event

Re: [tipc-discussion] port name - port_id ?

2008-02-22 Thread Jon Maloy
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

Re: [tipc-discussion] port name - port_id ?

2008-02-22 Thread Stephens, Allan
Hi Erich: The Linux 2.6.24 kernel contains TIPC 1.6.2 code. -- Al -Original Message- From: Erich Focht [mailto:[EMAIL PROTECTED] Sent: Friday, February 22, 2008 1:30 PM To: Stephens, Allan Cc: tipc-discussion@lists.sourceforge.net Subject: Re: [tipc-discussion] port name - port_id ?

Re: [tipc-discussion] port name - port_id ?

2008-02-22 Thread Horvath, Elmer
Hi Eric, I mis-read your initial message and didn't notice you were looking to connect to the topology server. I had also set up something similar (code below). Your call back routines should be getting called, I am not sure why they do not get called. I did not seem to have to call