Avi Kivity
67fc9dfe9a
net: fix eof reporting in native data_source adapter
...
An empty packet signals end-of-stream, which we ignored.
Note the empty packet and report it to the caller.
2014-09-11 11:39:10 +03:00
Avi Kivity
e0d7b5f1f6
s/networking/network/
...
Just because.
2014-09-10 15:45:23 +03:00
Avi Kivity
c0f87bbf40
net: fix byte order confusion in listen()
...
posix sockaddr_in gives the port in network byte order.
2014-09-10 15:42:24 +03:00
Avi Kivity
430acf7109
net: set up native network stack correctly
...
Start the interface and set up an IP address.
2014-09-10 15:41:51 +03:00
Avi Kivity
9c2a31bf0f
core: add networking stack registry
...
The registry allows stacks to name themselves to the core, so that
a networking stack can be selected at startup.
2014-09-10 11:42:33 +03:00
Avi Kivity
5630f636cd
net: add protcol stack adapter for native stack
...
This defines adapter classes for converting from the tcp<> class to the
abstractions that applications use.
Still very inefficient due to impedance mismatch between the data types used.
2014-09-10 10:42:21 +03:00