I'm using this bit of code to send and receive data, problem is I don't
US_HOST = "126.96.36.199"
US_PORT = 1900
class Client < EventMachine::Connection
def receive_data data
p "Received some data:"
us = EM.open_datagram_socket US_HOST, US_PORT, SSDP::Client
M-SEARCH * HTTP/1.1\r
If I'm sending the exact same message with Ruby's UDPSocket I *do* receive
Can someone tell me what I'm doing wrong here?
Question on stackoverflow: