Re: Detecting Internet activity

Tech-Archive recommends: Fix windows errors by optimizing your registry



Did you convert from network byte order to host byte order?

look at ntohs(), ntohl() etc.

"Noël Danjou" <noeld@xxxxxxxxxxxxx> wrote in message
news:%2368BXHSHGHA.2320@xxxxxxxxxxxxxxxxxxxxxxx
> Hi Kellie and Terry,
>
> Thanks to both of you for your suggestions.
>
> I could not find the GetExtendedTcpTable declaration in the "Platform SDK
> for Windows 2003 SP1" so I looked at GetTcpTable instead and that API
> could possibly do the trick but I still have some issues:
>
> - the listed ports don't seem to match the same figures as in netstat
> and
> - when I open a FTP connection, none of the listed ports match the
> "well-known" FTP ports 20 or 21, instead they show as 3544 to 3549 for
> example. How would I figure out if it is a port used for FTP, HTTP or
> other protocol or how would I convert them to well-known port numbers like
> 21 or 80?
>
> Thank you.
>
> Best regards,
> --
> Noël
>
>


.