| | |
Read incoming packets
![]() |
Hello,
I need help in my project, where I want to catch, read and forward some packets given to another application. Example: some packets is incoming for application MyApp on port 888. The another application is running on background and listening for communication with MyApp. If the server sends packet I need to catch it before it comes to MyApp and if data inside will include some special code, like "....server_echo" I need to destroy it. But if there isn't any special code, I need to forward it to MyApp.
It looks like a firewall application.
Thank you
I need help in my project, where I want to catch, read and forward some packets given to another application. Example: some packets is incoming for application MyApp on port 888. The another application is running on background and listening for communication with MyApp. If the server sends packet I need to catch it before it comes to MyApp and if data inside will include some special code, like "....server_echo" I need to destroy it. But if there isn't any special code, I need to forward it to MyApp.
It looks like a firewall application.
Thank you
Set your app to listen to 127.0.0.1:888
Your filter then connects to 127.0.0.1:888 and itself listens on port 888 of the machine itself.
Your filter now sees all the traffic on that port, and can forward/modify/drop as necessary.
Your filter then connects to 127.0.0.1:888 and itself listens on port 888 of the machine itself.
Your filter now sees all the traffic on that port, and can forward/modify/drop as necessary.
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
--
If your code lacks code tags, you will be IGNORED
--
If your code lacks code tags, you will be IGNORED
![]() |
Similar Threads
- ASM Game Coding Problem/Question (Assembly)
- RedHat Network Server (*nix Hardware Configuration)
Other Threads in the C++ Forum
- Previous Thread: OpenGL in C++
- Next Thread: date and time formats
Views: 467 | Replies: 1
| Thread Tools | Search this Thread |
Tag cloud for C++
algorithm api array arrays assignment beginner binary browser c++ c++borland c/c++ calculator char class classes code compile compiler constructor conversion convert count data delete desktop display dll dynamic encryption error file files form fstream function functions game givemetehcodez graph gui homework i/o iamthwee input int integer lazy library linker list loop loops map math matrix member memory newbie news number object objects opengl output parameter pointer pointers problem program programming project random read recursion recursive reference return sort sorting spoonfeeding string strings struct student studio template templates text time tree undefined variable vc++ vector video visual win32 window windows winsock






