c++ - Why netstat -o option does not list the chrome tab pid but only its parent browser pid? -


can tell me why netstat -o listing down 1 browser pid network connections happening inside chrome...what mean if have 2 or more tabs opened in chrome , each tab sending packets , netstat command netstat -o-b showing following.

proto local address foreign address state pid

tcp a.a.a.a b.b.b.b established 2240 [chrome.exe]

tcp a.a.a.a c.c.c.c established 2240 [chrome.exe]

2240 chrome browser pid. 2 connections established 2 chrome tabs having distinct pid's of there own,but not being listed. please shed light.

and more importantly how pid's of each chrome tab programatically? note: using windows c++.

pid process id (read: identifier of running program), not "tab id". fact browser uses tabs irrelevant - browser (a single program = single pid) may establish many connections. html downloadded connections presented in different tabs - that's all. btw connections may terminated after whole content has been downloaded, tab(s) may still kept open (untill close them manually). whether connections kept open or not depends on many different factors: content of page (if uses ajax, etc.), browser settings.


Comments

Popular posts from this blog

Email notification in google apps script -

c++ - Difference between pre and post decrement in recursive function argument -

javascript - IE11 incompatibility with jQuery's 'readonly'? -