Article View: borland.public.cppbuilder.internet.socket
Article #3998Re: Socket problem setting port and connecting.
From: Egi2kaZz
Date: Sat, 23 Apr 2005 21:27
Date: Sat, 23 Apr 2005 21:27
42 lines
2257 bytes
2257 bytes
hello, I'm new in socket's programing.. I'm trying to send data using ClientSocket/ServerSocket with Remy's code, but how and where to specify port and address in client and server pc? server's pc adrres 192.168.0.1 client 192.168.0.2 i'm getting 10049 10061 erros :( sorry 4 poor english "Hans Galema" <notused@notused.nl> wrote in message news:4263a52c@newsgroups.borland.com... > longshot wrote: > >> ClientSocket1->Port = 1234; > >> [Linker Error] Unresolved external '__fastcall >> Scktcomp::TAbstractSocket::SetPortA(int)' referenced from BUILDERINO.OBJ. > > Yes. I remember that from bcb3. > >> I looked for a patch that should solve it but the borland page that >> should >> contain it has gone offline. > > Looking for a patch was a good idea because, if I remember well, the > error was gone when a bcb3 patch was applied. > >> 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. > > But you can set the Port at designtime with the Object Inspector too. > >> I looked up error 10049 and it says that my address isn't set right. > > Port was not filled in in the IDE then. > > Hans.
Technical Details
Message-ID:
<426abd97@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!newshub.sdsu.edu!peer01.west.cox.net!cox.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<42638bd3$1@newsgroups.borland.com> <4263a52c@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: "Egi2kaZz" <egi2kas@gmail.com> Newsgroups: borland.public.cppbuilder.internet.socket References: <42638bd3$1@newsgroups.borland.com> <4263a52c@newsgroups.borland.com> Subject: Re: Socket problem setting port and connecting. Date: Sun, 24 Apr 2005 00:27:02 +0300 Lines: 44 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.2180 X-RFC2646: Format=Flowed; Response X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 NNTP-Posting-Host: 193.219.160.135 Message-ID: <426abd97@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1114291607 193.219.160.135 (23 Apr 2005 14:26:47 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!newshub.sdsu.edu!peer01.west.cox.net!cox.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail