Watch, Follow, &
Connect with Us

For forums, blogs and more please visit our
Developer Tools Community.

ID: 22162, Use of TCP/IP sockets in fully managed .NET vs Win32

by Alfred Mirzagitov Email: Anonymous

Use of TCP/IP sockets in fully managed .NET vs Win32; Handling raw data buffers without use of pointers (serialization); DNS queries.
Download Details
FTP  download also available
CDN Login Required to Download. (You will be redirected to the login page if you click on the Download Link)
To download this, you must have registered:
A free membership

For Delphi, Version 9.0  to 9.0 228 downloads
Copyright: No significant restrictions

Size: 27,704 bytes
Updated on Thu, 19 Aug 2004 13:35:59 GMT
Originally uploaded on Thu, 19 Aug 2004 13:17:31 GMT
SHA1 Hash: F7F00092D65AEB7A9E4B0280C47FCADEFF7B5178
MD5 Hash: 985C6539607146FB41264B8DE2A86D3F

    Explore the files in this upload

This sample shows how to use TCP/IP sockets in fully managed .NET environment. The attached code points out differences and similarities between the use of native Win32 code and .NET code to accomplish the same exact job.

Another point of this sample is to show how Win32 and .NET differ in handling raw data buffers. You cannot simply use pointers and typecast in .NET environment. This sample shows a simple technique of using a data serialization to access raw data buffers from both Win32 and .NET applications.

The sample projects are Win32 and .NET applications which utilize the same common DNS query class located in DnsLook.pas. Microsoft .NET framework offers a Dns class for host name and IP address resolution, but it is very limited and does not allow changing query types. The attached code provides support for all common query types, and it is easily expandable.

For more information, see

   Latest Comments  View All Add New

Move mouse over comment to see the full text

Could not retrieve comments. Please try again later.

Server Response from: ETNACDC03