Create a thread to peek data
Remove the return value of callback function
Update priv_socket.c & Add errcnt, seqnum, timestamp in context
Prepare to compress data in memory with libjpeg