🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Socket problem setting port and connecting.

#4000
From: Remy Lebeau (TeamB)
Date: Sun, 24 Apr 2005 19:35
34 lines
2145 bytes
"Egi2kaZz" <egi2kas@gmail.com> wrote in message
news:426abd97@newsgroups.borland.com...

> how and where to specify port and address in client and server pc?

TClientSocket has Address/Host and Port properties.  You can set them any
time prior to connecting to the server.

TServerSocket has a Port property.  You can set it any time prior to
activating the server.

> i'm getting 10049 10061 erros :(

    WSAEADDRNOTAVAIL (10049)

    Cannot assign requested address.

    The requested address is not valid in its context. Normally results from
an attempt to bind to an address that is not valid for the local machine, or
connect/sendto an address or port that is not valid for a remote machine
(e.g. port 0).


    WSAECONNREFUSED (10061)

    Connection refused.

    No connection could be made because the target machine actively refused
it. This usually results from trying to connect to a service that is
inactive on the foreign host - i.e. one with no server application running.


Gambit
Technical Details
Message-ID: <426bf467$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!newsread.com!news-xfer.newsread.com!news-out2.kabelfoon.nl!newsfeed.kabelfoon.nl!xindi.nntp.kabelfoon.nl!news2.euro.net!newsfeed.freenet.de!80.239.136.22.MISMATCH!tsicnews.teliasonera.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <42638bd3$1@newsgroups.borland.com> <4263a52c@newsgroups.borland.com> <426abd97@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,87ef1514521c3f8d
X-Google-Attributes: gid11508e,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com>
Newsgroups: borland.public.cppbuilder.internet.socket
References: <42638bd3$1@newsgroups.borland.com> <4263a52c@newsgroups.borland.com> <426abd97@newsgroups.borland.com>
Subject: Re: Socket problem setting port and connecting.
Date: Sun, 24 Apr 2005 12:35:16 -0700
Lines: 36
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1409
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409
NNTP-Posting-Host: 68.69.17.41
Message-ID: <426bf467$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1114371175 68.69.17.41 (24 Apr 2005 12:32:55 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!newsread.com!news-xfer.newsread.com!news-out2.kabelfoon.nl!newsfeed.kabelfoon.nl!xindi.nntp.kabelfoon.nl!news2.euro.net!newsfeed.freenet.de!80.239.136.22.MISMATCH!tsicnews.teliasonera.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail