import from https://svn.rtmpd.com/crtmpserver/branches/1.0