Re: Detecting Internet activity
- From: "m" <m@xxx>
- Date: Thu, 19 Jan 2006 16:18:16 -0500
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
>
>
.
- References:
- Detecting Internet activity
- From: Noël Danjou
- RE: Detecting Internet activity
- From: "TerryFei"
- Re: Detecting Internet activity
- From: Noël Danjou
- Detecting Internet activity
- Prev by Date: tcpclient/udpclient or sockets?
- Next by Date: Re: tcpclient/udpclient or sockets?
- Previous by thread: Re: Detecting Internet activity
- Next by thread: Re: Detecting Internet activity
- Index(es):