🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: TServerSocket sends a unwanted acknowlege

#3467
From: Billy Holliday
Date: Wed, 21 Sep 2005 08:04
25 lines
1502 bytes
Hello Remy Lebeau.


Many thanks  :-)


Don't cry, i'm a newbye.....

How and where to set the TCP_NODELAY option.

Is the OnClientConnect event the right place?

I thy this:
void __fastcall TForm::ServerSocketConnect(TObject *Sender,
      TCustomWinSocket *Socket)
{
    int fl = 1;
    setsockopt(Socket, IPPROTO_TCP, TCP_NODELAY, &fl, sizeof(fl));
}

but the complier says: can't convert TCustomWinSocket to int!!
in winsock.h the first parameter is a type SOCKET, so i think Socket is
right....

What's wront?
Technical Details
Message-ID: <433113a8$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <433101e8@newsgroups.borland.com> <43310420$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,2e35895317a3987d
X-Google-Attributes: gid11508e,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Billy Holliday" <NoSpam@Hohoho.com>
Newsgroups: borland.public.cppbuilder.internet.socket
References: <433101e8@newsgroups.borland.com> <43310420$1@newsgroups.borland.com>
Subject: Re: TServerSocket sends a unwanted acknowlege
Date: Wed, 21 Sep 2005 10:04:23 +0200
Lines: 30
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.50.4927.1200
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4927.1200
NNTP-Posting-Host: 212.202.128.58
Message-ID: <433113a8$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1127289768 212.202.128.58 (21 Sep 2005 01:02:48 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail