[openib-general] cm-id->context should be NULL forIB_CM_REQ_RECEIVED ?

Fab Tillier ftillier at silverstorm.com
Mon Jun 13 15:28:42 PDT 2005


> From: Jeff Carr [mailto:jcarr at linuxmachines.com]
> Sent: Monday, June 13, 2005 3:21 PM
> 
> I only call ib_cm_listen once:
> 
> ib_cm_listen(listen_id, LISTEN_NUM, 0);
> 
> Is it necessary to call listen for each connection I wish to recieve?

No, the listen stays around and keeps indicating connection requests as long as
your app keeps it active.

> It seems like the cm handler function I register when I create the cm_id
> continues to handle req events until it is destroyed so I'm assuming
> this is all I need.
>
> In the case where I only have one number I'm listening on, then it
> doesn't matter to me what the context is; NULL makes the code simple.

Yes, that makes sense.  Thanks!

- Fab





More information about the general mailing list