Created
September 27, 2012 07:10
-
-
Save tamano/3792625 to your computer and use it in GitHub Desktop.
code to send message to self in IPMsg protocol
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
require 'socket' | |
udp = UDPSocket.open() | |
sockaddr = Socket.pack_sockaddr_in(2425,"127.0.0.1") | |
udp.send("1:1:user:host:32:Hello",0,sockaddr) | |
udp.close |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment