kenhuang_89481
Jul 12, 2010Nimbostratus
about binary format/scan
The following paragraph is about "irules
". It's easy and there's no problem.
look this rules...
when CLIENT_ACCEPTED {
TCP::collect 1
}
when CLIENT_DATA {
if { [TCP::payload 1] equals "0" } {
pool pool0
} elseif {[TCP::payload 1] equals "1"}{
TCP::payload replace 0 1 ""
pool pool1
} else { pool game_pool3 }
TCP::release
}
interpret:
When the client send ASCII '0', IRULES will send this requirement directly to pool0.
When the client send ASCII '1', IRULES will delete the first byte of the package and also send the byte to pool1. So far, all is Ok.
But now in case that the client send the 3 of the binary and also do the matching, VS will send the requirement of the client to pool3 when they match well.
thanks