Link to home
Start Free TrialLog in
Avatar of level9wizard
level9wizardFlag for Canada

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!
Avatar of CSecurity
CSecurity
Flag of Iran, Islamic Republic of image

You want for Windows Only, right?
Avatar of level9wizard

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.
ASKER CERTIFIED SOLUTION
Avatar of CSecurity
CSecurity
Flag of Iran, Islamic Republic of image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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