adevs
Public Member Functions | Protected Member Functions | List of all members
adevs::QemuNic Class Reference

#include <adevs_qemu.h>

Inheritance diagram for adevs::QemuNic:
adevs::QemuDeviceModel

Public Member Functions

 QemuNic (std::string mac_addr="")
 
void append_qemu_arguments (std::vector< std::string > &args)
 
void write_bytes (void *data, int num_bytes)
 
- Public Member Functions inherited from adevs::QemuDeviceModel
int num_bytes_to_read ()
 
void read_bytes (void *buf)
 
void read_loop ()
 
void init_func ()
 

Protected Member Functions

io_bufferread ()
 
void initialize_io_structures ()
 
- Protected Member Functions inherited from adevs::QemuDeviceModel
void start ()
 

Detailed Description

A model of a network interface card. This will connect to a QEMU network card emulator via the file descriptor provided by get_qemu_fd().

Member Function Documentation

void adevs::QemuNic::append_qemu_arguments ( std::vector< std::string > &  args)
virtual

Arguments to be appended to the qemu argument vector when qemu is forked to simulate the computer.

Implements adevs::QemuDeviceModel.

void adevs::QemuNic::write_bytes ( void *  data,
int  num_bytes 
)
virtual

Cause data to arrive at the external, physical port. This call will block if the corresponding write to the underlying file descriptor blocks.

Implements adevs::QemuDeviceModel.


The documentation for this class was generated from the following file: