Home All Groups Group Topic Archive Search About

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

Author
22 Jun 2006 9:15 AM
Ray Lau
Dear all,

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

Best regards,
Ray

Author
22 Jun 2006 10:59 AM
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
Author
23 Jun 2006 1:10 AM
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

Show quote
"Vadym Stetsyak" <vady***@ukr.net> wrote in message
news:eOhL9qelGHA.1552@TK2MSFTNGP04.phx.gbl...
> 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
Author
23 Jun 2006 7:59 AM
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

AddThis Social Bookmark Button