Use ffi.sizeof() to get the size of buffer.
Rename res to rc.
tcp-echo-client now sends multiple messages.
Add a pcre example.