Article View: borland.public.cppbuilder.internet.socket
Article #5208Re: How to make a TClientSocket to search a TServerSocket???
From: Hans Galema
Date: Fri, 01 Oct 2004 10:01
Date: Fri, 01 Oct 2004 10:01
38 lines
2337 bytes
2337 bytes
Mark Jacobs wrote: > Hi dude, my errorcode is a bit more informative :- But not as informative as we would like to see it. For instance you omit the code itself and the short description. > ShowMessage(mjwinsockerr(ErrorCode)); ErrorCode=0; First I thouht "He forgets to make ErrorCode zero". But then I saw it at the end. Making ErrorCode zero suppresses the windowalert. But only if you do it right away: ErrorCode=0; ShowMessage(mjwinsockerr(ErrorCode)); or more readable: ErrorCode=0; ShowMessage(mjwinsockerr(ErrorCode)); > And, now, I bet you're dying for the mjwinsockerr routine, which translates a > Winsock error into an English description of what went wrong. Well, I'm in a > kind mood today, so here it is :- We all have such days ... Hope you get much more <g>. Have a nice day. > case 10060: return "!! A connection attempt failed because the connected > party did not properly respond after a period of time, or established > connection failed because connected host has failed to respond."; 10060 WSAETIMEDOUT I'm missing 'timed out' in your description case 10060: return "10060 WSAETIMEDOUT The attempt to connect timed out."; Hans.
Technical Details
Message-ID:
<415d1c16$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.icl.net!news-FFM2.ecrc.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<41595ce4$1@newsgroups.borland.com> <41595eed$1@newsgroups.borland.com> <41596530$1@newsgroups.borland.com> <415d16cd@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,bd4b4d9b4b503463 X-Google-Attributes: gid11508e,public X-Google-Language: ENGLISH,ASCII-7-bit Date: Fri, 01 Oct 2004 12:01:22 +0200 From: Hans Galema <dontusethis@dontusethis.nl> User-Agent: Mozilla Thunderbird 0.7 (Windows/20040616) X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: borland.public.cppbuilder.internet.socket Subject: Re: How to make a TClientSocket to search a TServerSocket??? References: <41595ce4$1@newsgroups.borland.com> <41595eed$1@newsgroups.borland.com> <41596530$1@newsgroups.borland.com> <415d16cd@newsgroups.borland.com> In-Reply-To: <415d16cd@newsgroups.borland.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 129.125.201.248 Message-ID: <415d1c16$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1096621078 129.125.201.248 (1 Oct 2004 01:57:58 -0700) Lines: 38 Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.icl.net!news-FFM2.ecrc.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail