🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.internet.socket
Article #5016

Re: initialising a ClientSocket

#5016
From: Mark Jacobs
Date: Mon, 15 Nov 2004 14:32
28 lines
2652 bytes
Hey, if OnConnect is not called, then the darn thing ain't connecting! It's as
simple as that!

It sounds like you are not able to connect client to server. If the server is
just listening for connections, ie. :-
ServerSocket1->Open();
then a Client ought to be able to connect to it and fire off the client's
OnConnect event (as well as the server's!). There can only be one thing
wrong - the port and/or IP address you are trying to connect through do not
allow the connection. You can test this with my mathspenknife.exe application
at http://www.jacobsm.com#sft (download the exe and run it - fill in IP
address and Port number, and then press Connect. A diagnostic error message is
reported if there is a problem (usually "the remote machine is not
listening"). This utility employs the blocking socket mode of operation of the
same components you are using, and it is a useful way of telling if you can
connect on certain port numbers. You may be able to ping your client or server
from each other, but that is not the same as sending packets on port numbers
that may be blocked by a firewall somewhere. HTH,
-- 
Mark Jacobs
DK Computing
http://www.dkcomputing.co.uk

"duncan" <nospam@nospam.com> wrote in message
news:4198b1a6$1@newsgroups.borland.com...
| the client OnLookup and OnConnecting methods get called but the
| client OnConnect method never gets called. Do I need something
| else on the server side to do this?
Technical Details
Message-ID: <4198be15@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!news.tele.dk!news.tele.dk!small.news.tele.dk!lnewsoutpeer01.lnd.ops.eu.uu.net!lnewsinpeer01.lnd.ops.eu.uu.net!emea.uu.net!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail
References: <41938125$1@newsgroups.borland.com> <4193a0bb@newsgroups.borland.com> <41989b78$1@newsgroups.borland.com> <4198a148$1@newsgroups.borland.com> <4198aed9$1@newsgroups.borland.com> <4198b1a6$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,f81efd77741cef0b
X-Google-Attributes: gid11508e,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Mark Jacobs" <http://www.jacobsm.com/mjmsg?Borland%20Newsgroup>
Newsgroups: borland.public.cppbuilder.internet.socket
References: <41938125$1@newsgroups.borland.com> <4193a0bb@newsgroups.borland.com> <41989b78$1@newsgroups.borland.com> <4198a148$1@newsgroups.borland.com> <4198aed9$1@newsgroups.borland.com> <4198b1a6$1@newsgroups.borland.com>
Subject: Re: initialising a ClientSocket
Date: Mon, 15 Nov 2004 14:32:59 -0000
Lines: 30
Organization: DK Computing
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1437
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441
NNTP-Posting-Host: 81.144.157.8
Message-ID: <4198be15@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1100529173 81.144.157.8 (15 Nov 2004 06:32:53 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!news.tele.dk!news.tele.dk!small.news.tele.dk!lnewsoutpeer01.lnd.ops.eu.uu.net!lnewsinpeer01.lnd.ops.eu.uu.net!emea.uu.net!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail