Added new API routine to get TCP stats.