|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.ObjectRedes.Buffer
Redes.Ethernet.TramaEthernet
Trama Ethernet
| Field Summary | |
static int |
kPREAMBULO
Byte de preambulo (10101010) |
static int |
kRELLENO
Byte de relleno (00000000) |
| Constructor Summary | |
TramaEthernet(Buffer trama)
Constructor |
|
TramaEthernet(DireccionEthernet origen,
DireccionEthernet destino,
Buffer p,
int tipo)
Constructor |
|
| Method Summary | |
java.lang.String |
Contenido()
Devuelve una cadena de texto informativa sobre la trama |
DireccionEthernet |
getDestino()
Devuelve la direccion MAC de destino |
DireccionEthernet |
getOrigen()
Devuelve la direccion MAC de origen |
int |
getTipo()
Devuelve el tipo de los datos contenidos |
int |
NumBytesRelleno()
Devuelve el numero de bytes de relleno |
void |
setDestino(DireccionEthernet destino)
Cambia la direccion MAC de destino |
void |
setOrigen(DireccionEthernet origen)
Cambia la direccion MAC de origen |
void |
setTipo(int tipo)
Cambia el tipo de datos contenidos (tipo de la carga util) |
| Methods inherited from class Redes.Buffer |
getBit, getByte, getByteH, getByteL, Redimensiona, setBit, setByte, setByteH, setByteL, Tam |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final int kPREAMBULO
public static final int kRELLENO
| Constructor Detail |
public TramaEthernet(DireccionEthernet origen,
DireccionEthernet destino,
Buffer p,
int tipo)
throws java.lang.IllegalArgumentException
origen - direccion MAC origendestino - direccion MAC destinop - datos contenidostipo - tipo de los datos contenidos
java.lang.IllegalArgumentException - Si el tipo de datos contenidos no son de tipo conocidopublic TramaEthernet(Buffer trama)
trama - Buffer con los datos de la trama| Method Detail |
public void setDestino(DireccionEthernet destino)
destino - Direccion MAC de destinopublic DireccionEthernet getDestino()
public void setOrigen(DireccionEthernet origen)
origen - Direccion MAC de origenpublic DireccionEthernet getOrigen()
public void setTipo(int tipo)
tipo - Tipo
java.lang.IllegalArgumentException - si el tipo no esta en el rango [0-65535]public int getTipo()
public int NumBytesRelleno()
public java.lang.String Contenido()
Contenido in class Buffer
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||