Skip to content

Instantly share code, notes, and snippets.

@tamano
Created September 27, 2012 07:10
Show Gist options
  • Save tamano/3792625 to your computer and use it in GitHub Desktop.
Save tamano/3792625 to your computer and use it in GitHub Desktop.
code to send message to self in IPMsg protocol
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