Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / New Users / June 2006

Tip: Looking for answers? Try searching our database.

How to share the socket between .net framework 1.1 and unmanaged code

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Ray Lau - 22 Jun 2006 10:15 GMT
Dear all,

How to share the socket between .net framework 1.1 and unmanaged code?

Best regards,
Ray
Vadym Stetsyak - 22 Jun 2006 11:59 GMT
Hello, Ray!

RL> How to share the socket between .net framework 1.1 and unmanaged code?

Take a look at Socket.Handle property.

In the managed world you'll use Socket class and in unmanaged only handle ( Socket.Handle ).

--
Regards, Vadym Stetsyak
www: http://vadmyst.blogspot.com
Ray Lau - 23 Jun 2006 02:10 GMT
Hi,

Thank you. How about share the socket from unmanaged code to managed code?
the Socket.Handle problem is readonly.

Best regards,
Ray

> Hello, Ray!
>
[quoted text clipped - 8 lines]
> Regards, Vadym Stetsyak
> www: http://vadmyst.blogspot.com 
Vadym Stetsyak - 23 Jun 2006 08:59 GMT
Hello, Ray!

RL> Thank you. How about share the socket from unmanaged code to managed
RL> code? the Socket.Handle problem is readonly.

I'm afraid that the only way to work with the socket handle, passed from unmanaged part, will be via P/Invoke,
that is Winsock API

--
Regards, Vadym Stetsyak
www: http://vadmyst.blogspot.com

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.