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

R

Ray Lau

Dear all,

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

Best regards,
Ray
 
V

Vadym Stetsyak

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
 
R

Ray Lau

Hi,

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

Best regards,
Ray
 
V

Vadym Stetsyak

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top