Einzelnen Beitrag anzeigen

Benutzerbild von MasterEvil
MasterEvil

Registriert seit: 12. Feb 2005
Ort: Hannover
234 Beiträge
 
Delphi 7 Enterprise
 
#5

Re: ReuseSocket (SO_REUSEADDR)

  Alt 28. Jan 2008, 08:19
Hallo,

ich habe das mit dem Multicast aus der MSDN, dort heißt es hier:
Zitat:
Once the second socket has successfully bound, the behavior for all sockets bound to that port is indeterminate. For example, if all of the sockets on the same port provide TCP service, any incoming TCP connection requests over the port cannot be guaranteed to be handled by the correct socket — the behavior is non-deterministic. A malicious program can use SO_REUSEADDR to forcibly bind sockets already in use for standard network protocol services in order to deny access to those service. No special privileges are required to use this option.

The exception to this non-deterministic behavior is multicast sockets. If two sockets are bound to the same interface and port and are members of the same multicast group, data will be delivered to both sockets, rather than an arbitrarily chosen one.
Und über Multicasts kann man dann hier etwas lesen. Für mich sind das aber böhmische Dörfer ...

Oder gibt es eine andere Lösung dieses Problem zu lösen?

Gruß,
Steffen
  Mit Zitat antworten Zitat