Lines Matching refs:param

206 	php_stream_xport_param param;  in php_stream_xport_bind()  local
209 memset(&param, 0, sizeof(param)); in php_stream_xport_bind()
210 param.op = STREAM_XPORT_OP_BIND; in php_stream_xport_bind()
211 param.inputs.name = (char*)name; in php_stream_xport_bind()
212 param.inputs.namelen = namelen; in php_stream_xport_bind()
213 param.want_errortext = error_text ? 1 : 0; in php_stream_xport_bind()
215 ret = php_stream_set_option(stream, PHP_STREAM_OPTION_XPORT_API, 0, &param); in php_stream_xport_bind()
219 *error_text = param.outputs.error_text; in php_stream_xport_bind()
222 return param.outputs.returncode; in php_stream_xport_bind()
237 php_stream_xport_param param; in php_stream_xport_connect() local
240 memset(&param, 0, sizeof(param)); in php_stream_xport_connect()
241 param.op = asynchronous ? STREAM_XPORT_OP_CONNECT_ASYNC: STREAM_XPORT_OP_CONNECT; in php_stream_xport_connect()
242 param.inputs.name = (char*)name; in php_stream_xport_connect()
243 param.inputs.namelen = namelen; in php_stream_xport_connect()
244 param.inputs.timeout = timeout; in php_stream_xport_connect()
246 param.want_errortext = error_text ? 1 : 0; in php_stream_xport_connect()
248 ret = php_stream_set_option(stream, PHP_STREAM_OPTION_XPORT_API, 0, &param); in php_stream_xport_connect()
252 *error_text = param.outputs.error_text; in php_stream_xport_connect()
255 *error_code = param.outputs.error_code; in php_stream_xport_connect()
257 return param.outputs.returncode; in php_stream_xport_connect()
267 php_stream_xport_param param; in php_stream_xport_listen() local
270 memset(&param, 0, sizeof(param)); in php_stream_xport_listen()
271 param.op = STREAM_XPORT_OP_LISTEN; in php_stream_xport_listen()
272 param.inputs.backlog = backlog; in php_stream_xport_listen()
273 param.want_errortext = error_text ? 1 : 0; in php_stream_xport_listen()
275 ret = php_stream_set_option(stream, PHP_STREAM_OPTION_XPORT_API, 0, &param); in php_stream_xport_listen()
279 *error_text = param.outputs.error_text; in php_stream_xport_listen()
282 return param.outputs.returncode; in php_stream_xport_listen()
296 php_stream_xport_param param; in php_stream_xport_accept() local
299 memset(&param, 0, sizeof(param)); in php_stream_xport_accept()
301 param.op = STREAM_XPORT_OP_ACCEPT; in php_stream_xport_accept()
302 param.inputs.timeout = timeout; in php_stream_xport_accept()
303 param.want_addr = addr ? 1 : 0; in php_stream_xport_accept()
304 param.want_textaddr = textaddr ? 1 : 0; in php_stream_xport_accept()
305 param.want_errortext = error_text ? 1 : 0; in php_stream_xport_accept()
307 ret = php_stream_set_option(stream, PHP_STREAM_OPTION_XPORT_API, 0, &param); in php_stream_xport_accept()
310 *client = param.outputs.client; in php_stream_xport_accept()
312 *addr = param.outputs.addr; in php_stream_xport_accept()
313 *addrlen = param.outputs.addrlen; in php_stream_xport_accept()
316 *textaddr = param.outputs.textaddr; in php_stream_xport_accept()
319 *error_text = param.outputs.error_text; in php_stream_xport_accept()
322 return param.outputs.returncode; in php_stream_xport_accept()
332 php_stream_xport_param param; in php_stream_xport_get_name() local
335 memset(&param, 0, sizeof(param)); in php_stream_xport_get_name()
337 param.op = want_peer ? STREAM_XPORT_OP_GET_PEER_NAME : STREAM_XPORT_OP_GET_NAME; in php_stream_xport_get_name()
338 param.want_addr = addr ? 1 : 0; in php_stream_xport_get_name()
339 param.want_textaddr = textaddr ? 1 : 0; in php_stream_xport_get_name()
341 ret = php_stream_set_option(stream, PHP_STREAM_OPTION_XPORT_API, 0, &param); in php_stream_xport_get_name()
345 *addr = param.outputs.addr; in php_stream_xport_get_name()
346 *addrlen = param.outputs.addrlen; in php_stream_xport_get_name()
349 *textaddr = param.outputs.textaddr; in php_stream_xport_get_name()
352 return param.outputs.returncode; in php_stream_xport_get_name()
359 php_stream_xport_crypto_param param; in php_stream_xport_crypto_setup() local
362 memset(&param, 0, sizeof(param)); in php_stream_xport_crypto_setup()
363 param.op = STREAM_XPORT_CRYPTO_OP_SETUP; in php_stream_xport_crypto_setup()
364 param.inputs.method = crypto_method; in php_stream_xport_crypto_setup()
365 param.inputs.session = session_stream; in php_stream_xport_crypto_setup()
367 ret = php_stream_set_option(stream, PHP_STREAM_OPTION_CRYPTO_API, 0, &param); in php_stream_xport_crypto_setup()
370 return param.outputs.returncode; in php_stream_xport_crypto_setup()
380 php_stream_xport_crypto_param param; in php_stream_xport_crypto_enable() local
383 memset(&param, 0, sizeof(param)); in php_stream_xport_crypto_enable()
384 param.op = STREAM_XPORT_CRYPTO_OP_ENABLE; in php_stream_xport_crypto_enable()
385 param.inputs.activate = activate; in php_stream_xport_crypto_enable()
387 ret = php_stream_set_option(stream, PHP_STREAM_OPTION_CRYPTO_API, 0, &param); in php_stream_xport_crypto_enable()
390 return param.outputs.returncode; in php_stream_xport_crypto_enable()
404 php_stream_xport_param param; in php_stream_xport_recvfrom() local
443 memset(&param, 0, sizeof(param)); in php_stream_xport_recvfrom()
445 param.op = STREAM_XPORT_OP_RECV; in php_stream_xport_recvfrom()
446 param.want_addr = addr ? 1 : 0; in php_stream_xport_recvfrom()
447 param.want_textaddr = textaddr ? 1 : 0; in php_stream_xport_recvfrom()
448 param.inputs.buf = buf; in php_stream_xport_recvfrom()
449 param.inputs.buflen = buflen; in php_stream_xport_recvfrom()
450 param.inputs.flags = flags; in php_stream_xport_recvfrom()
452 ret = php_stream_set_option(stream, PHP_STREAM_OPTION_XPORT_API, 0, &param); in php_stream_xport_recvfrom()
456 *addr = param.outputs.addr; in php_stream_xport_recvfrom()
457 *addrlen = param.outputs.addrlen; in php_stream_xport_recvfrom()
460 *textaddr = param.outputs.textaddr; in php_stream_xport_recvfrom()
462 return recvd_len + param.outputs.returncode; in php_stream_xport_recvfrom()
472 php_stream_xport_param param; in php_stream_xport_sendto() local
489 memset(&param, 0, sizeof(param)); in php_stream_xport_sendto()
491 param.op = STREAM_XPORT_OP_SEND; in php_stream_xport_sendto()
492 param.want_addr = addr ? 1 : 0; in php_stream_xport_sendto()
493 param.inputs.buf = (char*)buf; in php_stream_xport_sendto()
494 param.inputs.buflen = buflen; in php_stream_xport_sendto()
495 param.inputs.flags = flags; in php_stream_xport_sendto()
496 param.inputs.addr = addr; in php_stream_xport_sendto()
497 param.inputs.addrlen = addrlen; in php_stream_xport_sendto()
499 ret = php_stream_set_option(stream, PHP_STREAM_OPTION_XPORT_API, 0, &param); in php_stream_xport_sendto()
502 return param.outputs.returncode; in php_stream_xport_sendto()
511 php_stream_xport_param param; in php_stream_xport_shutdown() local
514 memset(&param, 0, sizeof(param)); in php_stream_xport_shutdown()
516 param.op = STREAM_XPORT_OP_SHUTDOWN; in php_stream_xport_shutdown()
517 param.how = how; in php_stream_xport_shutdown()
519 ret = php_stream_set_option(stream, PHP_STREAM_OPTION_XPORT_API, 0, &param); in php_stream_xport_shutdown()
522 return param.outputs.returncode; in php_stream_xport_shutdown()