Changeset 32105348 in mainline for uspace/srv/net/tl/tcp/test.c


Ignore:
Timestamp:
2011-10-04T18:12:41Z (13 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
d9ce049
Parents:
032bbe7
Message:

Send buffer, sketch data transmission.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/net/tl/tcp/test.c

    r032bbe7 r32105348  
    3939#include <stdio.h>
    4040#include <thread.h>
     41#include <str.h>
    4142#include "state.h"
    4243#include "tcp_type.h"
     
    5960        tcp_conn_t *conn;
    6061        tcp_sock_t sock;
     62        const char *msg = "Hello World!";
    6163
    6264        printf("test_cli()\n");
     
    6769        async_usleep(1000*1000*3);
    6870        tcp_uc_open(1024, &sock, ap_active, &conn);
     71
     72        async_usleep(1000*1000*10);
     73        tcp_uc_send(conn, (void *)msg, str_size(msg), 0);
    6974}
    7075
Note: See TracChangeset for help on using the changeset viewer.