TCP::offset

Description

Returns the number of bytes currently held in memory via TCP::collect. This data is available via TCP::payload.

Syntax

TCP::offset

TCP::offset

  • Returns the number of bytes currently held in memory via TCP::collect.

Examples

when CLIENT_ACCEPTED {
  TCP::collect
}
when CLIENT_DATA {
  set datalen [TCP::offset]
  log local0.info "Collected $datalen bytes of data!"
  TCP::release
}