for bug #235, fix the return code bug.
for bug #235, fix bug of utest.
fix bug for utest of message array, it does not free messages now.
fix #235, refine handshake, replace union with template method. 2.0.38.