This is for a networks project I'm working on. It requires us to simulate a bridge. The sockets become the ports basically.
But I was told in order for a Unixsocket to work it needs the full path to the socket and I don't know what the full path is.
Is there anyway to get around this?
s = UNIXSocket.new(SOCK_SEQPACKET)
s.connect(padder(lan_one[i]))
The part thats going wrong is padder(lan_one[i]). Padder basically pads a "port" until its 108 characters long. Anyways because the "port" is made up it doesn't actually exist anywhere. Therefore I can't path to it.