direct-code-execution / ns-3-dce

Run real programs in the discrete time simulator ns3
http://www.nsnam.org/projects/direct-code-execution/
75 stars 46 forks source link

Add Ioctl() support to LinuxSocketImpl #100

Closed richi235 closed 4 years ago

richi235 commented 4 years ago

Previously if you had a LinuxSocketImpl socket in your ns-3 master thread you could only call socket->m_kernsock->Ioctl() which would result in an error because there was no context, no thread for this task.

This adds a wrapper method for LinuxSocketImpl objects that creates a FakeTask first, like for most other socket methods, and makes it possible to call socket->Ioctl()

teto commented 4 years ago

thanks