impl some sock interfaces for astream
impl backtrace using frame