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

  • Thread starter Thread starter Ray Lau
  • Start date Start date
R

Ray Lau

Dear all,

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

Best regards,
Ray
 
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
 
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!

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
 
Back
Top