Searched refs:target_addr (Results 1 - 2 of 2) sorted by relevance

H A Dstreamsfuncs.c323 /* {{{ proto long stream_socket_sendto(resouce stream, string data [, long flags [, string target_addr]])
324 Send data to a socket stream. If target_addr is specified it must be in dotted quad (or [ipv6]) format */
330 char *data, *target_addr = NULL; local
335 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "rs|ls", &zstream, &data, &datalen, &flags, &target_addr, &target_addr_len) == FAILURE) {
342 if (FAILURE == php_network_parse_network_address_with_port(target_addr, target_addr_len, (struct sockaddr*)&sa, &sl TSRMLS_CC)) {
343 php_error_docref(NULL TSRMLS_CC, E_WARNING, "Failed to parse `%s' into a valid network address", target_addr);
348 RETURN_LONG(php_stream_xport_sendto(stream, data, datalen, flags, target_addr ? &sa : NULL, sl TSRMLS_CC));
H A Dbasic_functions.c1983 ZEND_ARG_INFO(0, target_addr)

Completed in 11 milliseconds