Re: Winsock in C#



What OS are you on? I ran into this once when I put some server code up on a
Windows Server 2003 box.


"Rain" <Rain@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:91F0AF4E-2D46-46F3-A426-F676BD898D92@xxxxxxxxxxxxxxxx
I know that there is an .NET implementation of sockets but i really need
the
winsock. This is the case, im doing an activeX.. C# dll to be used on
web...
so heres the problem, everything works fine with the dll and web until my
dll
reaches tcpListener.Start(), it produces an exception.. something about
security and permissions. Ive tried solving it with other people's
suggestions like changing the assembly to fulltrust but it doesnt seem to
work. So now, i was thinking that maybe, just maybe winsock will be able
to
do it.. so i need the class if any of you have it or the link... i would
be
very much grateful.. or any suggestions or ideas at all.. thank you so
much

"Kevin Spencer" wrote:

You can use raw Sockets in .Net. The Sockets classes are pretty darned
excellent!

--
HTH,

Kevin Spencer
Microsoft MVP
Professional Development Numbskull

Abnormality is anything but average.

"Ignacio Machin ( .NET/ C# MVP )" <ignacio.machin AT dot.state.fl.us>
wrote
in message news:OiUJgNXhGHA.836@xxxxxxxxxxxxxxxxxxxxxxx
Hi,

.NET has it own implementation of sockets , have you tried to use it?
Don;t know if you can use Raw sockets though, if ont you will have to
P/nvoke


--
--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation

"Rain" <Rain@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:838992D6-D730-4543-B6D4-7223A76AF0A9@xxxxxxxxxxxxxxxx
Does anybody know where i can get a winsock class for C#? badly
needed.
ANy
help would be very much appreciated. Thank you so so much!

-Stan







.



Relevant Pages

  • Re: Civilization 3 Conquest Winsock 2 Interception Idea. (OS:Win64)
    ... In the past I successfully intercept Winsock 1 calls, this is for the gamespy/game setup,phase. ... During unload of injectable dll restore everything etc. ... But seems like a good and doable plan.. ... How the mix of Windows 32 bit and Windows 64 bit is working. ...
    (alt.comp.lang.borland-delphi)
  • Civilization 3 Conquest Winsock 2 Interception Idea. (OS:Win64)
    ... The in-game phase uses Winsock 2 and DirectPlay for communication. ... During unload of injectable dll restore everything etc. ... How the mix of Windows 32 bit and Windows 64 bit is working. ...
    (alt.comp.lang.borland-delphi)
  • Re: Error 429 cant create activex object - winsock
    ... I have a Winsock control - mswinsck.ocx - installed and fully registered on ... I have used it frequently over the last year to drop an updated dll ... >>> progress of a file download and cancel out if things are going wrong. ...
    (microsoft.public.excel.programming)
  • Re: CASyncSocket initialization question...
    ... The OS has no idea that DLL A uses any feature of DLL B, and feels free to call the ... and B is WinSock, ... if there is no interdependence, or that the interdependence is handled cleanly. ... MVP Tips: http://www.flounder.com/mvp_tips.htm ...
    (microsoft.public.vc.mfc)