fixed bug of buffer
finished socket module
add methods about checking socket closed
add base event handler
add select poll module