mod: format code style
add: stream sync connect support (only win32)