finish the general framework of netstat