use macro to simplify code
use macro to simplify code

shadowsocks/shadowsocks-rust,zonyitoo/shadowsocks-rust,shadowsocks/shadowsocks-rust,cch123/shadowsocks-rust,shadowsocks/shadowsocks-rust,cch123/shadowsocks-rust,shadowsocks/shadowsocks-rust