Basic func

complete basic func, client send msg ,server display.