tcp_iface.cc (11290:1640dd68b0a4) tcp_iface.cc (11622:0b2aaf6f5c78)
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

--- 253 unchanged lines hidden (view full) ---

262void
263TCPIface::sendTCP(int sock, const void *buf, unsigned length)
264{
265 ssize_t ret;
266
267 ret = ::send(sock, buf, length, MSG_NOSIGNAL);
268 if (ret < 0) {
269 if (errno == ECONNRESET || errno == EPIPE) {
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

--- 253 unchanged lines hidden (view full) ---

262void
263TCPIface::sendTCP(int sock, const void *buf, unsigned length)
264{
265 ssize_t ret;
266
267 ret = ::send(sock, buf, length, MSG_NOSIGNAL);
268 if (ret < 0) {
269 if (errno == ECONNRESET || errno == EPIPE) {
270 inform("send(): %s", strerror(errno));
271 exit_message("info", 0, "Message server closed connection, "
272 "simulation is exiting");
270 exitSimLoop("Message server closed connection, simulation "
271 "is exiting");
273 } else {
274 panic("send() failed: %s", strerror(errno));
275 }
276 }
277 panic_if(ret != length, "send() failed");
278}
279
280bool

--- 63 unchanged lines hidden ---
272 } else {
273 panic("send() failed: %s", strerror(errno));
274 }
275 }
276 panic_if(ret != length, "send() failed");
277}
278
279bool

--- 63 unchanged lines hidden ---