Hi. I am trying to define which source port my program will use to send a packet from. I am able to define which port to send to, but not from. I'm sure it is possible but I don't know what exactly to do.
The "sin.sin_addr.s_addr" is so I can define which address to send the packet to and "sin.sin_port" is for me to define which port I can send the packet to.
Can someone please give me a code I can use so I can define which source port I can use to send packet from? I have the .cpp if anyone needs it.
Thanks
Last edited by marco712; June 24th, 2013 at 09:59 AM.
* The Best Reasons to Target Windows 8
Learn some of the best reasons why you should seriously consider bringing your Android mobile development expertise to bear on the Windows 8 platform.