add socket_content.cpp
add some new functions