From: Ben Nagy Date: 2006-12-05T16:11:50+09:00 Subject: Send over raw socket? Hi, This should be simple, but it doesn't seem to be documented anywhere I can find... I want to send data over a raw IP socket - not TCP or UDP. Ideally I'd like the OS to provide it's IP header, but I can do that myself if I have to. Normally you would open a socket as PF_INET, SOCK_RAW, (protocol number), then use sendto, but sendto doesn't seem to exist in ruby, and the Socket#send instance method is not documented anywhere, so I don't know what arguments it needs. Has anyone done this before, for any protocol? Oh, and to save time, I don't want to use libnet or rubyforger or *random-lib-someone-wrote. Thanks! ben