🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Socket problem setting port and connecting.

#4068
From: longshot
Date: Mon, 18 Apr 2005 10:26
23 lines
1753 bytes
I wrote a small server, executing just ServerSocket1->Open();

I wrote a small client :
        ClientSocket1->Address = "192.168.0.2";
        ClientSocket1->Port = 1234;
        ClientSocket1->Open();

only i get a compilation error :
[Linker Error] Unresolved external '__fastcall
Scktcomp::TAbstractSocket::SetPortA(int)' referenced from BUILDERINO.OBJ.

I looked for a patch that should solve it but the borland page that should
contain it has gone offline.

When i remove the line ClientSocket1->Port = 1234; i get an error :

Project builderino.exe raised exception class ESocketError with message
'Asynchronous socket error 10049'. Process stopped. Use Step or Run to
continue.

I looked up error 10049 and it says that my address isn't set right.

I use Builder 4 and run out of idears. Any help is appreciated.
Technical Details
Message-ID: <42638bd3$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newshosting.com!nx02.iad01.newshosting.com!news-peer0-test!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,87ef1514521c3f8d,start
X-Google-Attributes: gid11508e,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "longshot" <a@ladidadi.nl>
Newsgroups: borland.public.cppbuilder.internet.socket
Subject: Socket problem setting port and connecting.
Date: Mon, 18 Apr 2005 12:26:18 +0200
Lines: 25
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: 62.234.133.231
Message-ID: <42638bd3$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1113820115 62.234.133.231 (18 Apr 2005 03:28:35 -0800)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newshosting.com!nx02.iad01.newshosting.com!news-peer0-test!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail