Cosmos/source/Cosmos.Driver.RTL8139/Packet.cs
Scalpel_cp 6d287c9681 RTL driver changes.
Set size of packet to send.
Initialize RxBuffer.
Packet sending is still VERY unstable.
2008-03-20 18:42:45 +00:00

32 lines
842 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;
private byte[] body;
public PacketHeader Head { get; private set; }
public Packet(PacketHeader newhead, byte[] data)
{
head = newhead;
body = data;
}
public byte[] PacketBody
{
get
{
return body;
}
//return new byte[10]; //TODO: Redo this completely! Hardcoded to some bogus value now.
}
}
}