inet-3.6.4/src/inet/linklayer/xmac/XMacLayer.cc
/**
 * Send one short preamble packet immediately.
 */
Send one short preamble packet immediately.
Send one short preamble packet immediately .
void XMacLayer::sendPreamble(MACAddress preamble_address)
{
    XMacFrame* preamble = new XMacFrame("Preamble");
	preamble->setSrc(address);
	preamble->setDest(preamble_address);
	preamble->setKind(XMAC_PREAMBLE);
	preamble->setBitLength(headerLength);
	attachSignal(preamble, simTime());
	sendDown(preamble);
	nbTxPreambles++;
}
void XMacLayer :: sendPreamble ( MACAddress preamble_address ) { XMacFrame * preamble = new XMacFrame ( " " ) ; preamble -> setSrc ( address ) ; preamble -> setDest ( preamble_address ) ; preamble -> setKind ( XMAC_PREAMBLE ) ; preamble -> setBitLength ( headerLength ) ; attachSignal ( preamble , simTime ( ) ) ; sendDown ( preamble ) ; nbTxPreambles ++ ; }
Send one short preamble packet immediately.
Send one short preamble packet immediately .
//~ diff with BMAC, @ in preamble!
