<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.6000.16587" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=935234017-18092008><FONT face=Arial color=#0000ff
size=2>Hi,</FONT></SPAN></DIV>
<DIV><SPAN class=935234017-18092008><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=935234017-18092008><FONT face=Arial color=#0000ff size=2>As far
as I can tell from a first look, it seems that there is some problem in the
configuration that you are using.</FONT></SPAN></DIV>
<DIV><SPAN class=935234017-18092008><FONT face=Arial color=#0000ff size=2>On the
first look it seems that the problem might be that you have removed the ibsdp
provider and failed to install it again.</FONT></SPAN></DIV>
<DIV><SPAN class=935234017-18092008><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=935234017-18092008><FONT face=Arial color=#0000ff size=2>You
can install it again using the command: InstallSdpProvider
-i</FONT></SPAN></DIV>
<DIV><SPAN class=935234017-18092008><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=935234017-18092008><FONT face=Arial size=2><FONT
color=#0000ff>The main idea when running with the parameter <FONT
face="Times New Roman" size=3>WSA_FLAG_OVERLAPPED | 0x40 is to tell the sdp
layer to use SDP, but this parameter is later removed by the ibsdp.dll. I
believe that if you get the 10022 error this means that the ibsdp layer is not
installed.</FONT></FONT></FONT></SPAN></DIV>
<DIV><SPAN class=935234017-18092008><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=935234017-18092008><FONT face=Arial color=#0000ff size=2>Am I
right in assuming that even a simple program doesn't work for you when you are
trying to use mixed SDP applications?</FONT></SPAN></DIV>
<DIV><SPAN class=935234017-18092008><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=935234017-18092008><FONT face=Arial color=#0000ff size=2>In
order to work with mixed SDP applications please make sure
that:</FONT></SPAN></DIV>
<DIV><SPAN class=935234017-18092008><FONT face=Arial color=#0000ff size=2>1) SDP
driver is running. (net start SDP)</FONT></SPAN></DIV>
<DIV><SPAN class=935234017-18092008><FONT face=Arial color=#0000ff size=2>2) The
provider is installed. (InstallSdpProvider -i)</FONT></SPAN></DIV>
<DIV><SPAN class=935234017-18092008><FONT face=Arial color=#0000ff size=2>3) Set
the registry value MIXED_SDP_APPLICATIONS to 1. It is located
under:<BR>
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\sdp\Parameters</FONT></SPAN></DIV>
<DIV><SPAN class=935234017-18092008><FONT face=Arial color=#0000ff size=2>4)
Make sure that the SdpApplications is *NOT* set to the name of your
application.</FONT></SPAN></DIV>
<DIV><SPAN class=935234017-18092008><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=935234017-18092008><FONT face=Arial color=#0000ff size=2>Here
are also a few questions in order to try and understand your
environment:</FONT></SPAN></DIV>
<DIV><SPAN class=935234017-18092008><FONT face=Arial color=#0000ff size=2>1) Is
my SQL running on windows, or is it running on Linux?</FONT></SPAN></DIV>
<DIV><SPAN class=935234017-18092008><FONT face=Arial color=#0000ff size=2>2)
mysql_real_connect command, what is it exactly? Is this an executable? Is this a
function/library in the same program that you are trying to
run?</FONT></SPAN></DIV>
<DIV><SPAN class=935234017-18092008><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=935234017-18092008><FONT face=Arial color=#0000ff size=2>
<DIV><SPAN class=935234017-18092008><FONT face=Arial color=#0000ff size=2>If my
advice doesn't help can you please give me a remote connection to your
system?</FONT></SPAN></DIV>
<DIV><SPAN class=935234017-18092008><FONT face=Arial color=#0000ff size=2>If
giving a remote connection is not possibale can you send me the application that
you are using? I believe that you have a simpler version of this
application.</FONT></SPAN></DIV>
<DIV><SPAN class=935234017-18092008></SPAN> </DIV>
<DIV><SPAN class=935234017-18092008>I can also send you a debug version that
will have more prints.</SPAN></DIV></FONT></SPAN></DIV>
<DIV><SPAN class=935234017-18092008></SPAN><SPAN class=935234017-18092008><FONT
face=Arial color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=935234017-18092008><FONT face=Arial color=#0000ff
size=2>Thanks</FONT></SPAN></DIV>
<DIV><SPAN class=935234017-18092008><FONT face=Arial color=#0000ff
size=2>Tzachi</FONT></SPAN></DIV>
<DIV>
<HR tabIndex=-1>
</DIV>
<DIV><FONT face=Tahoma size=2><B>From:</B> ofw-bounces@lists.openfabrics.org
[mailto:ofw-bounces@lists.openfabrics.org] <B>On Behalf Of </B>Carlos Roberto
Cunha Fernandes<BR><B>Sent:</B> Thursday, September 18, 2008 12:54
AM<BR><B>To:</B> ofw@lists.openfabrics.org<BR><B>Subject:</B> [ofw] ***SPAM***
SDP and Ethernet<BR></FONT><BR></DIV>
<BLOCKQUOTE dir=ltr
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid; MARGIN-RIGHT: 0px">
<DIV></DIV>
<DIV><FONT face=Arial size=2>Hello,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>We are developing an application (Audio &
Video Server) in Windows XP that use a MySQL database and SDP
(socket direct protocol) to transfer files from one machine to another
through an mellanox infinihost III. For us is mandatory to use SDP
(Socket Direct Protocol) because we need the fastest speed possible to
transfer big video files. We are using MLNX_WinOF for x86 plataforms version
1.1.0 MSI. We did the transfer using sockets in a way similar to the SDK
sample application SdpConnect. We turn on SDP following instructions given in
the document "MLNX_WinOF_Readme.txt" in the topic "9.3 Running Applications
over SDP". Our application transfer files using SDP properly. The problem
is that we need also connect to a MySQL database in the same application. We
did this using the command "mysql_real_connect", but this command failed when
SDP Layer is on. When we turn off SDP layer the command "mysql_real_connect"
is successfull. We noted that MySQL uses socket internally. So we need SDP
sockets for our transfer routines and normal sockets for access MySQL. Then we
tried to use MIXED_SDP_APPLICATIONS following the instructions given in
the topic "9.4 Running an Application over SDP and Ethernet" but did not work.
This topic tells to use :<FONT size=2></FONT></FONT></DIV>
<P>WSASocket (AF_INET_FAMILY, SOCK_STREAM, IPPROTO_TCP,0,0,WSA_FLAG_OVERLAPPED
| 0x40)</P>
<P>for SDP sockets. We did it, but always can not create the socket - error
10022. Taking a looking in the definition of WSASocket we discover that the
last parameter "flags" does not have the option "WSA_FLAG_OVERLAPPED |
0x40". As I understand the code 0x40 tells that this socket is SDP but
we can not use it because the command WSASocket always fail because it does
not understand this last parameter.</P>
<P>How to solve this problem ? We need to use MySQL and SDP in the same
application.</P>
<P>Can you send me more documents describing how to run an Application
over SDP and Ethernet ?</P>
<P>Why I did not get to create the socket with
WSA_FLAG_OVERLAPPED | 0x40 ? What is missing ?</P>
<P>Regards,</P>
<P>Carlos Cunha</P>
<P> </P>
<P> </P></BLOCKQUOTE></BODY></HTML>