Article View: borland.public.cppbuilder.internet.socket
Article #1807INDY 10 in Builder 2006
From: Vlad
Date: Mon, 30 Oct 2006 13:38
Date: Mon, 30 Oct 2006 13:38
81 lines
2752 bytes
2752 bytes
I find this information in Net:
If you want that Indy 10 will be work in BDS do this:
In file IdWinSock2.hpp, afrer line ?368 (typedef TWSANetworkEvents
*LPWSANetworkEvents;) and before line typedef TWSAProtocol_InfoW
*LPWSAProtocol_InfoW;
insert this code:
#define wsaprotocol_len 255
#define max_protocol_chain 7
#pragma pack(push, 1)
struct TWSAProtocolChain
{
int ChainLen; // the length of the chain,
// length = 0 means layered protocol,
// length = 1 means base protocol,
// length > 1 means protocol chain
int ChainEntries[max_protocol_chain]; // a list of dwCatalogEntryIds
};
#pragma pack(pop)
#pragma pack(push, 1)
struct TWSAProtocol_InfoA
{
int dwServiceFlags1;
int dwServiceFlags2;
int dwServiceFlags3;
int dwServiceFlags4;
int dwProviderFlags;
TGUID ProviderId;
int dwCatalogEntryId;
TWSAProtocolChain ProtocolChain;
int iVersion;
int iAddressFamily;
int iMaxSockAddr;
int iMinSockAddr;
int iSocketType;
int iProtocol;
int iProtocolMaxOffset;
int iNetworkByteOrder;
int iSecurityScheme;
int dwMessageSize;
int dwProviderReserved;
char szProtocol[wsaprotocol_len];
};
#pragma pack(pop)
#pragma pack(push, 1)
struct TWSAProtocol_InfoW
{
int dwServiceFlags1;
int dwServiceFlags2;
int dwServiceFlags3;
int dwServiceFlags4;
int dwProviderFlags;
TGUID ProviderId;
int dwCatalogEntryId;
TWSAProtocolChain ProtocolChain;
int iVersion;
int iAddressFamily;
int iMaxSockAddr;
int iMinSockAddr;
int iSocketType;
int iProtocol;
int iProtocolMaxOffset;
int iNetworkByteOrder;
int iSecurityScheme;
int dwMessageSize;
int dwProviderReserved;
wchar_t szProtocol[wsaprotocol_len];
};
#pragma pack(pop)
typedef TWSAProtocol_InfoA * PWSAProtocol_InfoA;
typedef TWSAProtocol_InfoA * LPWSAProtocol_InfoA;
typedef TWSAProtocol_InfoW * PWSAProtocol_InfoW;
Technical Details
Message-ID:
<45460061@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news3.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: 11508e,75d65655606b87a4,start X-Google-Attributes: gid11508e,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Vlad" <vlad44b@rambler.ru> Newsgroups: borland.public.cppbuilder.internet.socket Subject: INDY 10 in Builder 2006 Date: Mon, 30 Oct 2006 16:38:24 +0300 Lines: 84 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.2180 X-RFC2646: Format=Flowed; Original X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 NNTP-Posting-Host: 194.190.194.74 Message-ID: <45460061@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1162215521 194.190.194.74 (30 Oct 2006 05:38:41 -0700) Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news3.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail