swiftsocket / SwiftSocket

The easy way to use sockets on Apple platforms
BSD 3-Clause "New" or "Revised" License
1.68k stars 402 forks source link

UDP Broadcast #80

Open ghost opened 7 years ago

ghost commented 7 years ago

Hi

I am trying make WS-Discovery probe request using your excellent library, but I am confused as to how I receive the responses to the probe? Do I need to run the UDP server?

Thanks in advance.

Regards Brian

danshevluk commented 7 years ago

Hi, Brain! I'm not familiar with WS-Discovery protocol. Can you explain how is works, so I can think of implementation using SwiftSocket?

ghost commented 7 years ago

Hi

Thanks for getting back to me. From my understanding, the client sends a probe message to a multicast group (address 239.255.255.250, port 3702), and then waits for a UDP response on the same port.

http://specs.xmlsoap.org/ws/2005/04/discovery/ws-discovery.pdf

Am I correct in thinking that I would need to start the server on port 3702 and wait for the responses?

Regards Brian

congyuguo commented 7 years ago

Hi, do you have a solution ?

nimble-software commented 7 years ago

Not yet no, I haven't had a chance to look at this yet

zhuyuping commented 5 years ago

Hi, My situation is the same as yours,do you have a solution ?

abbasqamar commented 5 years ago

Not yet

On Mon, May 27, 2019, 1:26 PM zhuyuping notifications@github.com wrote:

Hi, My situation is the same as yours,do you have a solution ?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/swiftsocket/SwiftSocket/issues/80?email_source=notifications&email_token=AILQJY5WPOZPHYZDXHPDP4DPXOLMZA5CNFSM4DKA5GQKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODWJEYGI#issuecomment-496127001, or mute the thread https://github.com/notifications/unsubscribe-auth/AILQJY745R24FWMZPJIORUTPXOLMZANCNFSM4DKA5GQA .