level9wizard
asked on
How can I send a packet with c++? [example required]
How can I create and send a UDP and/or TCP packet (stream) from c++? I'm compiling using MingW in Code::Blocks IDE, on Windows Vista 64-bit.
In my previous question (https://www.experts-exchange.com/questions/25001051/How-can-I-send-a-packet-with-c.html) I was not very clear; so to be more precise, please provide an actual compilable example (as per my specs). Please do not link to any other sites, paste directly or attach a .zip or of the build-able code.
Thanks in adance!
In my previous question (https://www.experts-exchange.com/questions/25001051/How-can-I-send-a-packet-with-c.html) I was not very clear; so to be more precise, please provide an actual compilable example (as per my specs). Please do not link to any other sites, paste directly or attach a .zip or of the build-able code.
Thanks in adance!
You want for Windows Only, right?
ASKER
[CSecurity]>>You want for Windows Only, right?
For now; yes, specifically (as I've mentioned) using MingW in Code::Blocks IDE, on Windows Vista 64-bit.
For now; yes, specifically (as I've mentioned) using MingW in Code::Blocks IDE, on Windows Vista 64-bit.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
This example really only shows how to create a socket; a higher layer than forming a packet itself - correct?
Yes, for forming packet itself you need WinPcap