NET equivalent for getservbyname

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,

Is there a NET equivalent for the winsock function getservbyname ? This one
returns the portnum given by a string. eg 'smtp', 'ft', etc and gets his
information from the 'services' file.
 
Hi,

I don't think it exists in .NET , at least I have never see it.

You will have to P/Invoke it


cheers,
 
Back
Top