Lines Matching defs:port

298 get_address_info ( const bjnp_sockaddr_t *addr, char * addr_string, int *port)
304 *port = ntohs (addr->ipv4.sin_port);
314 *port = ntohs (addr->ipv6.sin6_port);
321 *port = 0;
464 split_uri (const char *devname, char *method, char *host, char *port,
538 * retrieve port number
542 strcpy(port, "");
557 PDBG (bjnp_dbg (LOG_NOTICE, "split_uri: ERROR - Can not find port in %s (have \"%s\")\n", devname, start));
560 strcpy(port, start);
631 int port;
634 get_address_info( addr, addr_string, &port);
636 PDBG (bjnp_dbg (LOG_DEBUG, "setup_udp_socket: Setting up a UDP socket, dest: %s port %d\n",
637 addr_string, port ) );
808 int port;
822 get_address_info( scanner_sa, ip_address, &port );
836 sprintf(service, "%d", port);
999 /* we fill port when we send the broadcast */
1033 /* We fill port when we send the broadcast */
1060 bjnp_send_broadcast (int sockfd, const bjnp_sockaddr_t * broadcast_addr, int port,
1067 /* with port set to the destination port */
1072 dest_addr.ipv4.sin_port = htons(port);
1077 dest_addr.ipv6.sin6_port = htons(port);
1651 int port;
1659 get_address_info( addr, host, &port);
1660 PDBG (bjnp_dbg (LOG_DEBUG, "bjnp_open_tcp: Setting up a TCP socket, dest: %s port %d\n",
1661 host, port ) );
1740 char port[BJNP_PORT_MAX] = "";
1751 if (split_uri (devname, method, host, port, args) != 0)
1780 if (strlen(port) == 0)
1782 sprintf( port, "%d", protocol_defs->default_port );
1798 result = getaddrinfo (host, port, &hints, &res );
1801 PDBG (bjnp_dbg (LOG_CRIT, "bjnp_allocate_device: ERROR - Cannot resolve host: %s port %s\n", host, port));
1865 PDBG (bjnp_dbg (LOG_INFO, "bjnp_allocate_device: Scanner not yet in our list, added it: %s:%s\n", host, port));
1952 int port;
1960 port = atoi(port_str);
1962 if (port == 0)
1971 port = proto_struct-> default_port;
1982 snprintf(uri, max_len -1, "%s://%s:%d/%s", method,host, port, args);
2033 int port;
2256 port = get_port_from_sa(scanner_sa);
2262 port, timeout_default);
2289 * port = 8612 for a scanner