Article View: borland.public.cppbuilder.nativeapi
Article #15709Re: Raw sockets with winsock
From: Hans Galema
Date: Mon, 16 Jun 2003 20:44
Date: Mon, 16 Jun 2003 20:44
30 lines
2104 bytes
2104 bytes
Kjartan T. Hj๏ฟฝrvar wrote:
> unsigned char message[20] =
> {0x45,0x00,0x14,0x00,0x00,0x00,0x00,0x00,0x10,0x11,0x15,0x92,0xc0,0xa8,0x00,0x05,0xc0,0xa8,0x00,0x06};
>
> char message2[20];
> memcpy(message2, message, 20);
> int sentbytes = sendto(s, message2, 20, 0, (struct sockaddr *)&dest,
> sizeof(dest));
>
> This generates the same errors on the builder but works fine on visual c
Ran it with bcb3 and it gave:
socketerror : 0
setsockopterror : 10022 //WSAEINVAL ?
sentbytes : 20
sendtoerror : 126
With the "12345..." string the same:
socketerror : 0
setsockopterror : 10022
sentbytes : 20
sendtoerror : 126
I have no accepting socket running on 192.168.0.5 or
192.168.0.6 (0xc0,0xa8,0x00,0x06);
Hans.
Technical Details
Message-ID:
<3eee2c34@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mailReferences:
<3eebcb3d$1@newsgroups.borland.com> <3eec0f4d@newsgroups.borland.com> <3eed9e62$1@newsgroups.borland.com> <3eeda3b6@newsgroups.borland.com> <3eedc72b$1@newsgroups.borland.com> <3eedc991$1@newsgroups.borland.com> <3eee1e43$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII X-Google-Thread: 10cc67,37b140341e7bf2c2 X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2003-06-16 13:47:48 PST Date: Mon, 16 Jun 2003 22:44:49 +0200 From: Hans Galema <j.m.galema.dontusethis@maartens.nl> User-Agent: Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.3.1) Gecko/20030425 X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: borland.public.cppbuilder.nativeapi Subject: Re: Raw sockets with winsock References: <3eebcb3d$1@newsgroups.borland.com> <3eec0f4d@newsgroups.borland.com> <3eed9e62$1@newsgroups.borland.com> <3eeda3b6@newsgroups.borland.com> <3eedc72b$1@newsgroups.borland.com> <3eedc991$1@newsgroups.borland.com> <3eee1e43$1@newsgroups.borland.com> In-Reply-To: <3eee1e43$1@newsgroups.borland.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit NNTP-Posting-Host: 129.125.108.11 Message-ID: <3eee2c34@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1055796276 129.125.108.11 (16 Jun 2003 13:44:36 -0700) Lines: 31 Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail