is there way not body of incoming message. ether/ip
headers of it? i'm using gen_tcp
, receive messages active controlling process.
for socket opened via 'of_driver' in such way:
gen_tcp:connect(ipaddr, port, [binary, {packet, raw}, {active, false}],connect_timeout)
as far know, can't ethernet or ip headers through gen_tcp
. use the procket library open raw socket. (the {packet, raw}
option passed gen_tcp
doesn't refer "raw" socket; means gen_tcp
doesn't try interpret tcp byte stream split packets.)
Comments
Post a Comment