🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Simple Client - Server example for Builder 4.0 ?

#2051
From: Bob Gonder
Date: Tue, 29 Aug 2006 16:39
15 lines
1480 bytes
Ori wrote:

>Can someone please show me or send me a simple code for Client - 
>Server example that will work on Builder 4.0 ?  

You already have one.
The MSDN links you posted should work for you once you remove the
function that doesn't compile (getaddrinfo), and replace

    ListenSocket = socket(result->ai_family, result->ai_socktype,
result->ai_protocol);

with

   ListenSocket = socket( AF_INET, SOCK_STREAM, IPPROTO_TCP );
Technical Details
Message-ID: <o7r8f25cmlkhdcn9rvunm917gse9ch9ecl@4ax.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news4.google.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newspeer1.nwr.nac.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <44f40396$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,c28846b9a9f67c3c
X-Google-Attributes: gid11508e,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: Bob Gonder <notbg@notmindspring.invalid>
Newsgroups: borland.public.cppbuilder.internet.socket
Subject: Re: Simple Client - Server example for Builder 4.0  ?
Date: Tue, 29 Aug 2006 09:39:01 -0700
Organization: MindSpring Enterprises, Inc.
Reply-To: notbg@notmindspring.invalid
Message-ID: <o7r8f25cmlkhdcn9rvunm917gse9ch9ecl@4ax.com>
References: <44f40396$1@newsgroups.borland.com>
X-Newsreader: Forte Agent 1.93/32.576 English (American)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 67.77.147.83
X-Trace: newsgroups.borland.com 1156869537 67.77.147.83 (29 Aug 2006 09:38:57 -0700)
Lines: 18
Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news4.google.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newspeer1.nwr.nac.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail