MSER.NET
It' is a microsoft Developer Network Technologies site...
Home....
Developer Network
>>
Visual C++ & C++ Programming
>>
Network Programming
How to Replace source IP
Sock= socket(AF_INET, SOCK_STREAM, IPPROTO_TCP);
if (Sock == INVALID_SOCKET)
{
//error
}
connect(Sock, (SOCKADDR*)&sockAddr, sizeof(SOCKADDR_IN)) != SUCCESS)
{
//error
}
Is there a way to replace the source IP programmatically in the
above CONNECT().
[303 byte] By [
skybird200488
] at [2007-11-19 7:22:27]
««
SSTab bug?
»»
Need some basic file i/o help
# 1
Re: How to Replace source IP
Nope you have to create a raw socket and create your own ip header and set the src field to the src ip that you want.
svenhag
at 2007-11-9 13:49:14 >
Visual C++ & C++ Programming
Path of Application
Variable types in STl etc
CList
Rich Edit Controls, Size, Scrollbar, pages? Advice sought..
Text to phoneme
Web Page Design
Copy Constructor that transfers ownership
Sometimes Content in CRichEditCtrl Does not Show up properly!
Help with power management PLEASE
MessageBox with a HWN as a param
Network Programming
Help with CAsyncSocket behind a firewall
Check the Socket before Send
Communication using IP address
How can I check availability of LAN and Internet and list of Computers on LAN
how to get the computer name by IP address under windows ?
port bind issue
file transfer
Pda programming - winsock connection problem
Enumerate Sockets
Receiving net send messages
Visual C++ & C++ Programming
Visual C++ Programming
C++ (Non Visual C++ Issues)
C++ and WinAPI
Managed C++ and C++/CLI
Network Programming
Visual C++ Bugs & Fixes
Graphics Programming
Multithreading
Driver Development
Slow Chat: Visual C++
All Classified
Visual C++ & C++ Programming
Visual Basic Programming
.NET Programming
Java Programming
Other Programming
General Discussion
Jobs
Windows Central
Community
Visual C++ & C++ Programming New Topic
Sometimes Content in CRichEditCtrl Does not Show up properly!
How to Popup a new form?
windows login credentials
MS Office Spelling Languages
Upating LineLength in RichEdit
Help Dcom Error
not possible to use DLL in .NET Class Library?
Performance Counter DLL
Visual C++ & C++ Programming Hot Topic
Path of Application
Copy Constructor that transfers ownership
MessageBox with a HWN as a param
Recursive function to retrieve subdirectories
Newbie problem: C2065 method is an unideclared identifier
my window hates me
Prime Factors Program
Embedding my app in an existing exe.