ss="mi">100; } else clib_socket_tx_add_formatted (s, "hello there mr server %d\n", 99); error = clib_socket_tx (s); if (error) goto done; while (1) { error = clib_socket_rx (s, 100); if (error) break; if (clib_socket_rx_end_of_file (s)) break; if_verbose ("%v", s->rx_buffer); _vec_len (s->rx_buffer) = 0; } error = clib_socket_close (s); done: if (error) clib_error_report (error); return 0; } #ifdef CLIB_UNIX int main (int argc, char *argv[]) { unformat_input_t i; int r; verbose = (argc > 1); unformat_init_command_line (&i, argv); r = test_socket_main (&i); unformat_free (&i); return r; } #endif /* * fd.io coding-style-patch-verification: ON * * Local Variables: * eval: (c-set-style "gnu") * End: */