Lines Matching defs:port
43 static void init_server(const char *port);
44 static void init_client(const char *server, const char *port);
50 * default TCP port number
89 {"port", 1, NULL, 'p'},
102 char *port = DEFAULT_PORT;
117 port = optarg;
150 init_server(port);
155 init_client(argv[optind], port);
178 printf(_(" -p,--port # : specify TCP port (digit or service name)\n"));
179 printf(_(" -s,--source addr : read from given addr (client:port)\n"));
180 printf(_(" -d,--dest addr : write to given addr (client:port)\n"));
273 /* create a port */
281 perror("create seq port");
295 if (snd_seq_connect_from(handle, seq_port, addr.client, addr.port)) {
306 if (snd_seq_connect_to(handle, seq_port, addr.client, addr.port)) {
347 static void init_server(const char *port)
361 if (getaddrinfo(NULL, port, &hints, &result) < 0) {
432 static void init_client(const char *server, const char *port)
446 if (getaddrinfo(server, port, &hints, &result) < 0) {
595 * copy events from sequencer to port(s)
628 * copy events from a port to sequencer