Re: Using Socket -GM

Manju <[email protected]> Wed, 28 Jul 2004 13:21:24 -0600
Newsgroups gmane.network.myrinet.general
Message-ID <[email protected]>
Hi Markus,

>From examples in the tests directory the examples start with 
#ifdef AFINET
#define AF_FAMILY AF_INET
#else
#define AF_FAMILY AF_BLUETOOTH
#endif

>From tests/simple/server.c
socket(AF_FAMILY,SOCK_STREAM ....)

>From sockets preload.c
if (domain == AF_INET && type == SOCK_STREAM)
                domain = AF_BLUETOOTH;

sgm.h:#define AF_SGM_MYRINET AF_BLUETOOTH

It seems from above snippets,  if my applications  should  use
Socket-GM then my family in socket call should be  AF_BLUETOOTH 
i.e,in my applications  to create socket(AF_BLUETOOTH, ......)  and
ofcourse the with LD_PRELOAD set to libgmsocks.so.1.0. Please let me
know if I am wrong ?


If  my above assumption is right then according to code in 
sockets preload.c
if (domain == AF_INET && type == SOCK_STREAM)
                domain = AF_BLUETOOTH;

I don't see how SOCK_DGRAM sockets for udp are supported. Please correct me
If Iam missing something here.

thanks for help,
regards,
-Manjunath



On Wed, 28 Jul 2004 13:00:55 +0200, Markus Fischer <[email protected]> wrote:
> Hi Manjunath,
> 
> you will be able to see debug messages in /var/log/messages if you have
> the debug option enabled.
> 
> Please note that the socket interface of Linux will be used, but Linux
> will delegate it to the AF_MYRI socket address family.
> 
> In order to use AF_MYRI you need to set an LD_PRELOAD for
> the libgmsocks.so.1.0 file or specify AF_MYRI explicitely.
> 
> Please have a look at the tests directory which includes examples for
> AF_INET and AF_MYRI
> 
> Please let me know if you have further questions,
> Markus
> 
> 
> 
> 
> Manju wrote:
> 
> >Hi,
> >
> > I have Socket -GM compiled and installed. I am trying to verify my applications
> >uses Socket-GM and not Socket interface of Linux kernel. In doing this I enable
> >the debugging option(-DMODULE_DEBUG ) during compilation and when I
> >run application to use Sockets-GM it doesn't print any kernel message.
> >Can I conclude from this Socket-GM is not being used or Iam missing
> >something here ?
> >
> >Environment
> >OS : Linux (Kernel version 2.4.21)
> >GM : gm-2.0.12
> >Socket-GM -1.4
> >
> >any help is appreciated,
> >
> >Thanks,
> >-Manjunath
> >_______________________________________________
> >Myrinet mailing list
> >[email protected]
> >http://email.osc.edu/mailman/listinfo/myrinet
> >
> >
> >
> 
>