<html><body><div style="color:#000; background-color:#fff; font-family:tahoma, new york, times, serif;font-size:12pt">Hi,<div style="font-family: tahoma, new york, times, serif; font-size: 12pt;"><div style="font-family: times new roman, new york, times, serif; font-size: 12pt;"><div id="yiv1817819348"><div style="color:#000;background-color:#fff;font-family:tahoma, new york, times, serif;font-size:12pt;"><div>I wanted to use tcp sockets from Device Emulation (eg. DevAHCI.cpp) and connect to a socket server running on one of the Guest OS or to another system on the network. I have following questions - <br></div><div>1. Would this kind of socket comm possible from Device Emulation code?</div><div>2. As device emulation code runs in Ring0 mode, if I try to even include iprt/sockets.h file, it complains that RTSocket APIs are not available in Ring-0 context. If that is so, what sockets can I use from within Device Emulation code?</div><div>3. How do I know
 which code of Virtualbox is running in Ring0 and which is running in Ring3? I was under the impression that the vbox host drivers that are built and installed on the host OS is the only code that runs in Ring0 and everything else should be Ring3. <br></div><div>4. Is there
 any sample code of this socket comm that can be used from device emulation in virtualbox, that you can point me to?. <br></div><div>Thanks.</div><div>Arpit.<br></div></div></div><br><br></div></div></div></body></html>