Lines Matching refs:server
26 * This is TCP traffic server.
68 * This structure stores the information of a server
74 int concurrent; /* if non-zero, act as a concurrent server */
108 "\t-c\twork in the concurrent server mode\n"
111 "\t-o\tfilename where the server infomation is outputted\n"
161 * info_p: pointer to a server infomation
198 * info_p: pointer to a server infomation
217 /* Translate the network and service information of the server */
285 * info_p: pointer to a server infomation
374 * info_p: pointer to a server infomation
462 if (info_p->concurrent) { /* concurrent server. */
505 } else { /* repeat server */
534 struct server_info server; /* server information */
541 /* Initilalize the server information */
542 memset(&server, '\0', sizeof(struct server_info));
543 server.family = PF_UNSPEC;
544 server.portnum = NULL;
551 server.family = PF_INET; /* IPv4 */
553 server.family = PF_INET6; /* IPv6 */
571 server.portnum = strdup(optarg);
580 server.concurrent = 1;
584 server.small_sending = 1;
588 server.window_scaling = 1;
612 if (server.family == PF_UNSPEC) {
618 if (server.portnum == NULL) {
619 server.portnum = (char *)calloc(6, sizeof(char));
620 sprintf(server.portnum, "%u", PORTNUMMIN);
638 create_listen_socket(&server);
640 /* Output any server information to the information file */
648 ret = handle_client(&server);