|
Hello,
I am new to WinPcap. I've converted
the Packet.dll header to Delphi, and before I write a wrapper I would like to
clear a few things.
1) In order to send and receive
packets at the same time, should I use 2 threads? I know full duplex lines can
send and receive at the same time.
2) Does it make sense using
PacketSendPackets over PacketSendPacket if my application has a queue of many
packets?
3) Does PacketSendPackets and/or
PacketSendPacket block when sending or they queue the data and return
immediately? - if yes, then I suppose I can use 1 thread for sending and
receiving since it would be done quite fast.
4) Could it happen that I receive
half a packet if the supplied buffer is not big enough?
5) What happens if all adapter names
don't fit in the buffer supplied to PacketGetAdapterNames? Could it be that
partial name is received? Are there errors indicating about this?
6) Can I receive all the queued
packets at once? I want to be efficient as possible,
so if you have any hints for speed I'd appreciate it
Thanks,
Daniel
|
- RE: [WinPcap-users] Sending/Receiving same time + Pack... Daniel Frimerman
- RE: [WinPcap-users] Sending/Receiving same time +... Robert Thornthwaite
- Re: [WinPcap-users] Sending/Receiving same ti... Daniel Frimerman
