Lines Matching defs:protocol

71  * Call the protocol-specific Init() and Connection() functions.
75 InitConnection(CRConnection *conn, const char *protocol, unsigned int mtu
81 if (!crStrcmp(protocol, "devnull"))
86 else if (!crStrcmp(protocol, "file"))
92 else if (!crStrcmp(protocol, "swapfile"))
100 else if (!crStrcmp(protocol, "tcpip"))
106 else if (!crStrcmp(protocol, "udptcpip"))
113 else if (!crStrcmp(protocol, "vboxhgcm"))
125 else if (!crStrcmp(protocol, "gm"))
133 else if (!crStrcmp(protocol, "quadrics"))
141 else if (!crStrcmp(protocol, "quadrics-tcscomm"))
149 else if (!crStrcmp(protocol, "sdp"))
157 else if (!crStrcmp(protocol, "ib"))
167 else if (!crStrcmp(protocol, "hpmc"))
176 crError("Unknown protocol: \"%s\"", protocol);
185 * "protocol://servername:port" where the port specifier
186 * is optional and if the protocol is missing it is assumed
200 char hostname[4096], protocol[4096];
216 if ( !crParseURL( server, protocol, hostname, &port, default_port ) ) {
235 if ( !crStrcmp( protocol, "quadrics" ) ||
236 !crStrcmp( protocol, "quadrics-tcscomm" ) ) {
244 crDebug( "Connecting to %s on port %d, with protocol %s",
245 hostname, port, protocol );
249 if (!crStrcmp(protocol, "sdp")) {
281 /* now, just dispatch to the appropriate protocol's initialization functions. */
282 InitConnection(conn, protocol, mtu
337 * \param protocol the protocol to use (such as "tcpip" or "gm")
346 crNetAcceptClient( const char *protocol, const char *hostname,
372 /* now, just dispatch to the appropriate protocol's initialization functions. */
373 crDebug("In crNetAcceptClient( protocol=\"%s\" port=%d mtu=%d )",
374 protocol, (int) port, (int) mtu);
377 if ( !crStrncmp( protocol, "file", crStrlen( "file" ) ) ||
378 !crStrncmp( protocol, "swapfile", crStrlen( "swapfile" ) ) )
384 if (!crParseURL(protocol, protocol_only, filename, NULL, 0))
386 crError( "Malformed URL: \"%s\"", protocol );
390 /* call the protocol-specific init routines */ // ktd (add)
398 /* call the protocol-specific init routines */
399 InitConnection(conn, protocol, mtu
767 * error checking, byte counting, and a dispatch to the protocol's