Cosmos/source/Cosmos.Driver.RTL8139/Packet.cs
Scalpel_cp f3d66c26df More massive changes to RTL8139 driver.
First implementation of Transmit(Packet) method. Not working yet.
Fixed bitwise mathematics in PacketHeader.
Created several of the memory-registers as separate classes.
2008-03-13 21:28:13 +00:00

26 lines
696 B
C#

using System;
using System.Collections.Generic;
using System.Text;
namespace Cosmos.Driver.RTL8139
{
/// <summary>
/// A network Packet used when transferring data over a network.
/// Consists of a body (with the data) and a head (with info about the packet)
/// </summary>
public class Packet
{
private PacketHeader head;
public PacketHeader Head { get; private set; }
public Packet(PacketHeader newhead)
{
head = newhead;
}
public byte[] PacketBody()
{
return new byte[10]; //TODO: Redo this completely! Hardcoded to some bogus value now.
}
}
}