|
@@ -19,9 +19,9 @@ void tcp_senddata(const char* url, int port, int length)
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
|
|
|
|
- /* 神奇内存 */
|
|
|
|
|
|
+ /* 申请内存 */
|
|
buffer_ptr = rt_malloc(length);
|
|
buffer_ptr = rt_malloc(length);
|
|
- /* 构造发生数据 */
|
|
|
|
|
|
+ /* 构造发送数据 */
|
|
for (index = 0; index < length; index ++)
|
|
for (index = 0; index < length; index ++)
|
|
buffer_ptr[index] = index & 0xff;
|
|
buffer_ptr[index] = index & 0xff;
|
|
|
|
|