Article View: borland.public.cppbuilder.database.multi-tier
Article #831Socket Connection Problems
From: John Graham
Date: Sat, 13 Jan 2001 13:43
Date: Sat, 13 Jan 2001 13:43
38 lines
2069 bytes
2069 bytes
Greetings,
I'm having a problem binding the app. server dispatch interface in my
client app. using a socket connection. The platform is BCB ver. 5
Enterprise, and the OS is Windows 2000 Professional.
I built the "adhoc" project in \Examples\Midas, which uses a DCOM
connection and it works fine. When I substitute a socket connection and
try to bind the dispatch interface to a local object in the client, the
IsBound() method returns false.
I'm using the socket server executable supplied with BCB5 and both the
client, socket server, and application server are running on the same
PC. The code snippet is:
IAdHcDMDisp AdhcServ;
if ( !SocketConnection1->Connected )
{
SocketConnection1->Connected = true;
}
AdhcServ.Bind(SocketConnection1->GetServer());
if ( !AdhcServ.IsBound() )
{
ShowMessage("Can't Bind - Aborting!");
SocketConnection1->Connected = false;
return;
}
The application server fires up normally, but the Bind() method fails.
Hope someone can put me on the proper path.
Regards,
John
Technical Details
Message-ID:
<3A605B82.E57D7AEB@salts.navy.mil>Path:
arc1-ca.pugleaf.net!supernews.google.com!sn-xit-03!supernews.com!newsswitch.lcs.mit.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!colt.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!bornews.borland.com!dnews!163.12.6.113Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fcd2b,174ecfd4dd47565,start X-Google-Attributes: gidfcd2b,public X-Google-ArrivalTime: 2001-01-13 05:46:06 PST Message-ID: <3A605B82.E57D7AEB@salts.navy.mil> Date: Sat, 13 Jan 2001 08:43:30 -0500 From: John Graham <jgraham@salts.navy.mil> Organization: SALTS Central X-Mailer: Mozilla 4.76 [en] (WinNT; U) X-Accept-Language: en MIME-Version: 1.0 Newsgroups: borland.public.cppbuilder.database.multi-tier Subject: Socket Connection Problems Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 163.12.6.113 X-Trace: 13 Jan 2001 05:42:18 -0800, 163.12.6.113 Lines: 39 Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-03!supernews.com!newsswitch.lcs.mit.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!colt.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!bornews.borland.com!dnews!163.12.6.113