support socket connection,message handling