Lines Matching defs:protocol

58  * The transport table contains a definition for every transport (protocol)
151 TRANS(SelectTransport) (const char *protocol)
158 prmsg (3,"SelectTransport(%s)\n", protocol);
166 strncpy (protobuf, protocol, PROTOBUFSIZE - 1);
181 if (!strcasecmp (protocol, Xtransports[i].transport->TransName))
191 char **protocol, char **host, char **port)
196 * as "protocol/host:port[/catalogue]". Note that the catologue
201 * as "protocol/host:port".
203 * If the protocol part is missing, then assume TCP.
204 * If the protocol part and host part are missing, then assume local.
245 /* Get the protocol part */
255 *protocol = NULL;
270 /* There is neither a protocol or host specified */
284 *mybuf ++= '\0'; /* put a null at the end of the protocol */
305 *protocol = NULL;
367 if ((*protocol = strdup (_protocol)) == NULL)
372 *protocol = NULL;
382 free (*protocol);
383 *protocol = NULL;
394 free (*protocol);
395 *protocol = NULL;
416 char *protocol = NULL, *host = NULL, *port = NULL;
432 if (TRANS(ParseAddress) (address, &protocol, &host, &port) == 0)
440 if ((thistrans = TRANS(SelectTransport) (protocol)) == NULL)
443 protocol);
445 free (protocol);
457 ciptr = thistrans->OpenCOTSClient(thistrans, protocol, host, port);
462 ciptr = thistrans->OpenCOTSServer(thistrans, protocol, host, port);
474 protocol, host, port);
476 free (protocol);
485 free (protocol);
725 TRANS(Received) (const char * protocol)
731 prmsg (5, "Received(%s)\n", protocol);
733 if ((trans = TRANS(SelectTransport)(protocol)) == NULL)
736 protocol);
753 TRANS(NoListen) (const char * protocol)
759 if ((trans = TRANS(SelectTransport)(protocol)) == NULL)
762 protocol);
779 TRANS(Listen) (const char * protocol)
784 if ((trans = TRANS(SelectTransport)(protocol)) == NULL)
787 protocol);
804 TRANS(IsListening) (const char * protocol)
808 if ((trans = TRANS(SelectTransport)(protocol)) == NULL)
811 protocol);
855 char *protocol;
862 if (TRANS(ParseAddress) (address, &protocol, &host, &port) == 0)
877 if (protocol) free (protocol);
884 if (protocol) free (protocol);