tcp_iface.cc (11622:0b2aaf6f5c78) | tcp_iface.cc (11701:5e7599457b97) |
---|---|
1/* 2 * Copyright (c) 2015 ARM Limited 3 * All rights reserved 4 * 5 * The license below extends only to copyright in the software and shall 6 * not be construed as granting a license to any other intellectual 7 * property including but not limited to intellectual property relating 8 * to a hardware implementation of the functionality of the software --- 315 unchanged lines hidden (view full) --- 324} 325 326void 327TCPIface::recvPacket(const Header &header, EthPacketPtr &packet) 328{ 329 packet = make_shared<EthPacketData>(header.dataPacketLength); 330 bool ret = recvTCP(sock, packet->data, header.dataPacketLength); 331 panic_if(!ret, "Error while reading socket"); | 1/* 2 * Copyright (c) 2015 ARM Limited 3 * All rights reserved 4 * 5 * The license below extends only to copyright in the software and shall 6 * not be construed as granting a license to any other intellectual 7 * property including but not limited to intellectual property relating 8 * to a hardware implementation of the functionality of the software --- 315 unchanged lines hidden (view full) --- 324} 325 326void 327TCPIface::recvPacket(const Header &header, EthPacketPtr &packet) 328{ 329 packet = make_shared<EthPacketData>(header.dataPacketLength); 330 bool ret = recvTCP(sock, packet->data, header.dataPacketLength); 331 panic_if(!ret, "Error while reading socket"); |
332 packet->simLength = header.simLength; |
|
332 packet->length = header.dataPacketLength; 333} 334 335void 336TCPIface::initTransport() 337{ 338 // We cannot setup the conections in the constructor because the number 339 // of dist interfaces (per process) is unknown until the (simobject) init 340 // phase. That information is necessary for global connection ordering. 341 establishConnection(); 342} | 333 packet->length = header.dataPacketLength; 334} 335 336void 337TCPIface::initTransport() 338{ 339 // We cannot setup the conections in the constructor because the number 340 // of dist interfaces (per process) is unknown until the (simobject) init 341 // phase. That information is necessary for global connection ordering. 342 establishConnection(); 343} |