Create a buffer event on a socket, stream or a file descriptor. Passing
null to
socket
means that the socket should be created later, e.g. by means of
EventBufferEvent::connect().
Parameters
base
Event base that should be associated with the new buffer event.
socket
May be created as a stream(not necessarily by means of
sockets
extension)