add network peer info structure, prepare to write socket