Move BufferType enum out of st_socket.