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

/PHP_5_6/ext/standard/
H A Dstreamsfuncs.c325 /* {{{ proto long stream_socket_sendto(resouce stream, string data [, long flags [, string target_addr]])
326 Send data to a socket stream. If target_addr is specified it must be in dotted quad (or [ipv6]) format */
332 char *data, *target_addr = NULL; local
337 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "rs|ls", &zstream, &data, &datalen, &flags, &target_addr, &target_addr_len) == FAILURE) {
344 if (FAILURE == php_network_parse_network_address_with_port(target_addr, target_addr_len, (struct sockaddr*)&sa, &sl TSRMLS_CC)) {
345 php_error_docref(NULL TSRMLS_CC, E_WARNING, "Failed to parse `%s' into a valid network address", target_addr);
350 RETURN_LONG(php_stream_xport_sendto(stream, data, datalen, flags, target_addr ? &sa : NULL, sl TSRMLS_CC));

Completed in 5 milliseconds