Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Can more than one application retrieve from same socket?  (Read 2428 times)

0 Members and 1 Guest are viewing this topic.

kaB00M

  • Full Member
  • ***
  • Posts: 101
    • View Profile
    • Caffeware
    • Email
Can more than one application retrieve from same socket?
« on: November 28, 2012, 09:02:08 pm »
Can more than one application retrieve from same socket at the same time without data lost?
In the context of tcp?
In the context of udp?

Thank you.



Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
Re: Can more than one application retrieve from same socket?
« Reply #1 on: November 28, 2012, 09:13:36 pm »
The short answer is no. The longer answer requires other tools than SFML.

But why do you want to do that?
Laurent Gomila - SFML developer

kaB00M

  • Full Member
  • ***
  • Posts: 101
    • View Profile
    • Caffeware
    • Email
Re: Can more than one application retrieve from same socket?
« Reply #2 on: November 28, 2012, 09:46:13 pm »
I'm running a game app and I want to see the information the program is sending my comp.

I'm not trying to cheat. I want to use that information in order to 'extent' the original game.



gyscos

  • Jr. Member
  • **
  • Posts: 69
    • View Profile
Re: Can more than one application retrieve from same socket?
« Reply #3 on: November 28, 2012, 10:11:23 pm »
That is not easy.
But it is possible. The pcap library, used by Wireshark, or more specifically its WinPcap implementation, can do just that. You'll obviously need to be administrator (or root), but it can then grab any packet that enters or leaves your computer, and eventually create your own. I used it to "power-up" the broadcasting from games like warcraft III to a list of reachable known IPs outside of broadcast range.
But it is completely outside of SFML scope.
« Last Edit: November 28, 2012, 10:13:21 pm by gyscos »

kaB00M

  • Full Member
  • ***
  • Posts: 101
    • View Profile
    • Caffeware
    • Email
Re: Can more than one application retrieve from same socket?
« Reply #4 on: November 29, 2012, 07:56:47 pm »
Thank you.  :)



 

anything