Converting Sockets-Based Applications To Use Sdp - HP NC570C User Manual

Dual-port 4x fabric adapter
Hide thumbs Also See for NC570C:
Table of Contents

Advertisement

36
Table 6-1: SDP Conversion Information
Conversion
Type
Explicit/
source code
Explicit/
application
Converting Sockets-Based Applications to Use
SDP
There are three ways to convert your sockets-based applications to use SDP instead of TCP, which are
described in the table below:
S
Method
Converts sockets to use
SDP based on application
source code.
This is useful when you
want full control from
your application when
using SDP.
Converts socket streams to
use SDP based on the
application environment.
Required Action
1. Change your source code to use
when calling the socket ( ) system call.
AF_INET
is defined in
AF_INET_SDP
/usr/local/topspin/include/sdp_sock.h
1. Load the installed
libsdp_sys.so
following ways:
Edit the
LD_PRELOAD
full path of the library you want to use and it will be
preloaded.
or
Add the full path of the library into
/etc/ld.so.preload
for every executable that is linked with
2. Set the application environment to include AF_INET_SDP.
Example:
csh setenv AF_INET_SDP
sh AF_INET_SDP =1
export AF_INET_SDP
instead of
AF_INET_SDP
library in one of the
environment variable. Set this to the
. The library will be preloaded
.
libc

Advertisement

Table of Contents
loading

This manual is also suitable for:

Nc571c

Table of Contents