add common files for tranfer.
change net msg data to template
change net msg data to template. test done.
base sock communicate done