Created
May 15, 2013 02:18
-
-
Save ozuma/5581227 to your computer and use it in GitHub Desktop.
Send a UDP test packet.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/ruby | |
require "socket" | |
udp = UDPSocket.open() | |
sockaddr = Socket.pack_sockaddr_in(53, "192.168.0.1") | |
udp.send("HELLO", 0, sockaddr) | |
udp.close |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment