🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Developing a Sniffer

#3867
From: Eelke
Date: Fri, 10 Jun 2005 13:02
22 lines
1676 bytes
Patrick Wong wrote:
> "Eelke" <e.klein@mplussoftware.nl> wrote in message
> news:42a93417$1@newsgroups.borland.com...
> 
>>Also I guess the code has put the socket in non-blocking mode. You could
>>try to use blocking mode in which case recv would wait for data to
>>become available.
>>
> 
> I add a statement
>  ioctlsocket(RawSocket, FIONBIO, 0);
> 
> This disables the socket to be non-blocking?  The problem is still there.
> 
> 
The third argument should by a pointer to an u_long like this:

u_long arg = 0;
ioctlsocket(RawSocket, FIONBIO, &arg);


Eelke
Technical Details
Message-ID: <42a98f14$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!newsgate.cistron.nl!feeder1.cambrium.nl!feed.tweaknews.nl!news2.euro.net!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <42a8ffee$1@newsgroups.borland.com> <42a93417$1@newsgroups.borland.com> <42a97480$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,8706ab62d569f7f0
X-Google-Attributes: gid11508e,public
X-Google-Language: ENGLISH,ASCII-7-bit
Date: Fri, 10 Jun 2005 15:02:15 +0200
From: Eelke <e.klein@mplussoftware.nl>
User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206)
X-Accept-Language: en-us, en
MIME-Version: 1.0
Newsgroups: borland.public.cppbuilder.internet.socket
Subject: Re: Developing a Sniffer
References: <42a8ffee$1@newsgroups.borland.com> <42a93417$1@newsgroups.borland.com> <42a97480$1@newsgroups.borland.com>
In-Reply-To: <42a97480$1@newsgroups.borland.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 81.58.1.162
Message-ID: <42a98f14$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1118408468 81.58.1.162 (10 Jun 2005 06:01:08 -0700)
Lines: 22
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!newsgate.cistron.nl!feeder1.cambrium.nl!feed.tweaknews.nl!news2.euro.net!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail