implemented to process a data to communicate between server and client.
To modify chat_api.
add username field into schat.
fixed: set NULL bug.
fixed seg fault bug.
merge chat_api branch to fix segfault.