Sending and Recieving Broadcast Packets 
Author Message
 Sending and Recieving Broadcast Packets

Is there a way to send and recieve TCP/IP broadcast packets using API's?  I
have VB6 Enterprise Edition if that is of any useful information.  Thanks in
advance for any and all help.

Jeff Walter



Mon, 24 Feb 2003 13:23:09 GMT  
 Sending and Recieving Broadcast Packets
You can send UDP broadcast packets using Winsock APIs. You have to bind to a
port and set the address to IP_ADDRESS_ANY constant. When you send message
using the socket created in this fashion, the message is broadcast over the
network and all the listeners on that port will receive the message.


Quote:
>Is there a way to send and recieve TCP/IP broadcast packets using API's?  I
>have VB6 Enterprise Edition if that is of any useful information.  Thanks
in
>advance for any and all help.

>Jeff Walter




Thu, 27 Feb 2003 11:23:21 GMT  
 Sending and Recieving Broadcast Packets
Thanks for that information.  I'm not sure of the APIs I would need to send
UDP broadcast packets, do you know of an example of this technique or a list
of the APIs needed?  Also, would you happen to know how to listen for UDP
broadcast packets?  Thanks for the help.

Jeff Walter


Quote:
> You can send UDP broadcast packets using Winsock APIs. You have to bind to
a
> port and set the address to IP_ADDRESS_ANY constant. When you send message
> using the socket created in this fashion, the message is broadcast over
the
> network and all the listeners on that port will receive the message.



Thu, 27 Feb 2003 13:32:59 GMT  
 Sending and Recieving Broadcast Packets

Hi

You can easily use winsock.ocx for sending UDP packets to for example
200.200.200.255 ( subnet is 255.255.255.0 ) .
If you need I will send you a small snippet.

Sincerely , Siamak

--
Siamak Sarmady, B.S.E.E, A.S.E.E, Site Administrator NT, Unix, 2000
Network Programmer (Socket, ASP, Web, CGI, JAVA) for Unix, NT, 2000
ICQ# 78628429, http://www.angelfire.com/nt/sarmadys
Inexpensive Web and Network Programming : Rates from $5 per hour .



Sun, 16 Mar 2003 23:40:57 GMT  
 
 [ 4 post ] 

 Relevant Pages 

1. Receiving Broadcast Packets with Winsock control or WinAPI.

2. Multicast and Broadcast Packets

3. Winsock Control - Broadcast Packets.

4. Receiving Broadcast Packets with Winsock control or WinAPI.

5. Does a BROADCAST UDP packet send to all IP addresses on your computer?

6. Sending Netware broadcast from VB5

7. Using vbscript to send Netwrork Broadcast to a Loged on User - Help

8. How do i send a broadcast?

9. sending broadcast mesages

10. sending broadcast mesages

11. API to send a network message (broadcast)

12. Send/Recieve

 

 
Powered by phpBB® Forum Software