1 /*******************************************************************************
\r
2 * Trace Recorder Library for Tracealyzer v3.0.2
\r
3 * Percepio AB, www.percepio.com
\r
7 * Simple generic TCP/IP layer. Modify trcTCPIPConfig.h to adapt it to any
\r
11 * This software (the "Tracealyzer Recorder Library") is the intellectual
\r
12 * property of Percepio AB and may not be sold or in other ways commercially
\r
13 * redistributed without explicit written permission by Percepio AB.
\r
15 * Separate conditions applies for the SEGGER branded source code included.
\r
17 * The recorder library is free for use together with Percepio products.
\r
18 * You may distribute the recorder library in its original form, but public
\r
19 * distribution of modified versions require approval by Percepio AB.
\r
22 * The trace tool and recorder library is being delivered to you AS IS and
\r
23 * Percepio AB makes no warranty as to its use or performance. Percepio AB does
\r
24 * not and cannot warrant the performance or results you may obtain by using the
\r
25 * software or documentation. Percepio AB make no warranties, express or
\r
26 * implied, as to noninfringement of third party rights, merchantability, or
\r
27 * fitness for any particular purpose. In no event will Percepio AB, its
\r
28 * technology partners, or distributors be liable to you for any consequential,
\r
29 * incidental or special damages, including any lost profits or lost savings,
\r
30 * even if a representative of Percepio AB has been advised of the possibility
\r
31 * of such damages, or for any claim by any third party. Some jurisdictions do
\r
32 * not allow the exclusion or limitation of incidental, consequential or special
\r
33 * damages, or the exclusion of implied warranties or limitations on how long an
\r
34 * implied warranty may last, so the above limitations may not apply to you.
\r
36 * Tabs are used for indent in this file (1 tab = 4 spaces)
\r
38 * Copyright Percepio AB, 2015.
\r
40 ******************************************************************************/
\r
43 #include "trcTCPIP.h"
\r
44 #include "trcTCPIPConfig.h"
\r
46 int32_t trcTcpWrite(void* data, uint32_t size, int32_t *ptrBytesWritten)
\r
48 return trcSocketSend(data, size, ptrBytesWritten);
\r
51 int32_t trcTcpRead(void* data, uint32_t size, int32_t *ptrBytesRead)
\r
53 trcSocketInitializeListener();
\r
57 return trcSocketReceive(data, size, ptrBytesRead);
\r