tcp: reorganize connection members