Added a timeout option to afpacket.

It seems that there is no difference in the return values of the
poll in case of timeout, and the read actually gets us an empty
message. So the application needs to ignore empty messages if this
option is used.