HomeSort by: relevance | last modified time | path
    Searched defs:TCP (Results 1 - 2 of 2) sorted by relevancy

  /src/usr.bin/systat/
systat.h 57 #define TCP 0x1
  /src/tests/usr.sbin/inetd/
t_inetd.c 51 #define TCP 6
67 "uses UDP/TCP ports 5432-5439 with localhost.");
197 /* Run localhost tcp echo, return true if successful, false if timeout/disconnect */
203 int tcp; local in function:run_tcp_client
206 tcp = create_socket("127.0.0.1", port, SOCK_STREAM, TCP, 1, &remote);
207 CHECK_ERROR(connect(tcp, (const struct sockaddr *)&remote,
209 CHECK_ERROR(send(tcp, buffer, sizeof(buffer), 0));
210 count = recv(tcp, buffer, sizeof(buffer), 0);

Completed in 12 milliseconds