Lines Matching refs:param

201 	php_stream_xport_param param;  in php_stream_xport_bind()  local
204 memset(&param, 0, sizeof(param)); in php_stream_xport_bind()
205 param.op = STREAM_XPORT_OP_BIND; in php_stream_xport_bind()
206 param.inputs.name = (char*)name; in php_stream_xport_bind()
207 param.inputs.namelen = namelen; in php_stream_xport_bind()
208 param.want_errortext = error_text ? 1 : 0; in php_stream_xport_bind()
210 ret = php_stream_set_option(stream, PHP_STREAM_OPTION_XPORT_API, 0, &param); in php_stream_xport_bind()
214 *error_text = param.outputs.error_text; in php_stream_xport_bind()
217 return param.outputs.returncode; in php_stream_xport_bind()
232 php_stream_xport_param param; in php_stream_xport_connect() local
235 memset(&param, 0, sizeof(param)); in php_stream_xport_connect()
236 param.op = asynchronous ? STREAM_XPORT_OP_CONNECT_ASYNC: STREAM_XPORT_OP_CONNECT; in php_stream_xport_connect()
237 param.inputs.name = (char*)name; in php_stream_xport_connect()
238 param.inputs.namelen = namelen; in php_stream_xport_connect()
239 param.inputs.timeout = timeout; in php_stream_xport_connect()
241 param.want_errortext = error_text ? 1 : 0; in php_stream_xport_connect()
243 ret = php_stream_set_option(stream, PHP_STREAM_OPTION_XPORT_API, 0, &param); in php_stream_xport_connect()
247 *error_text = param.outputs.error_text; in php_stream_xport_connect()
250 *error_code = param.outputs.error_code; in php_stream_xport_connect()
252 return param.outputs.returncode; in php_stream_xport_connect()
262 php_stream_xport_param param; in php_stream_xport_listen() local
265 memset(&param, 0, sizeof(param)); in php_stream_xport_listen()
266 param.op = STREAM_XPORT_OP_LISTEN; in php_stream_xport_listen()
267 param.inputs.backlog = backlog; in php_stream_xport_listen()
268 param.want_errortext = error_text ? 1 : 0; in php_stream_xport_listen()
270 ret = php_stream_set_option(stream, PHP_STREAM_OPTION_XPORT_API, 0, &param); in php_stream_xport_listen()
274 *error_text = param.outputs.error_text; in php_stream_xport_listen()
277 return param.outputs.returncode; in php_stream_xport_listen()
291 php_stream_xport_param param; in php_stream_xport_accept() local
294 memset(&param, 0, sizeof(param)); in php_stream_xport_accept()
296 param.op = STREAM_XPORT_OP_ACCEPT; in php_stream_xport_accept()
297 param.inputs.timeout = timeout; in php_stream_xport_accept()
298 param.want_addr = addr ? 1 : 0; in php_stream_xport_accept()
299 param.want_textaddr = textaddr ? 1 : 0; in php_stream_xport_accept()
300 param.want_errortext = error_text ? 1 : 0; in php_stream_xport_accept()
302 ret = php_stream_set_option(stream, PHP_STREAM_OPTION_XPORT_API, 0, &param); in php_stream_xport_accept()
305 *client = param.outputs.client; in php_stream_xport_accept()
307 *addr = param.outputs.addr; in php_stream_xport_accept()
308 *addrlen = param.outputs.addrlen; in php_stream_xport_accept()
311 *textaddr = param.outputs.textaddr; in php_stream_xport_accept()
312 *textaddrlen = param.outputs.textaddrlen; in php_stream_xport_accept()
315 *error_text = param.outputs.error_text; in php_stream_xport_accept()
318 return param.outputs.returncode; in php_stream_xport_accept()
328 php_stream_xport_param param; in php_stream_xport_get_name() local
331 memset(&param, 0, sizeof(param)); in php_stream_xport_get_name()
333 param.op = want_peer ? STREAM_XPORT_OP_GET_PEER_NAME : STREAM_XPORT_OP_GET_NAME; in php_stream_xport_get_name()
334 param.want_addr = addr ? 1 : 0; in php_stream_xport_get_name()
335 param.want_textaddr = textaddr ? 1 : 0; in php_stream_xport_get_name()
337 ret = php_stream_set_option(stream, PHP_STREAM_OPTION_XPORT_API, 0, &param); in php_stream_xport_get_name()
341 *addr = param.outputs.addr; in php_stream_xport_get_name()
342 *addrlen = param.outputs.addrlen; in php_stream_xport_get_name()
345 *textaddr = param.outputs.textaddr; in php_stream_xport_get_name()
346 *textaddrlen = param.outputs.textaddrlen; in php_stream_xport_get_name()
349 return param.outputs.returncode; in php_stream_xport_get_name()
356 php_stream_xport_crypto_param param; in php_stream_xport_crypto_setup() local
359 memset(&param, 0, sizeof(param)); in php_stream_xport_crypto_setup()
360 param.op = STREAM_XPORT_CRYPTO_OP_SETUP; in php_stream_xport_crypto_setup()
361 param.inputs.method = crypto_method; in php_stream_xport_crypto_setup()
362 param.inputs.session = session_stream; in php_stream_xport_crypto_setup()
364 ret = php_stream_set_option(stream, PHP_STREAM_OPTION_CRYPTO_API, 0, &param); in php_stream_xport_crypto_setup()
367 return param.outputs.returncode; in php_stream_xport_crypto_setup()
377 php_stream_xport_crypto_param param; in php_stream_xport_crypto_enable() local
380 memset(&param, 0, sizeof(param)); in php_stream_xport_crypto_enable()
381 param.op = STREAM_XPORT_CRYPTO_OP_ENABLE; in php_stream_xport_crypto_enable()
382 param.inputs.activate = activate; in php_stream_xport_crypto_enable()
384 ret = php_stream_set_option(stream, PHP_STREAM_OPTION_CRYPTO_API, 0, &param); in php_stream_xport_crypto_enable()
387 return param.outputs.returncode; in php_stream_xport_crypto_enable()
401 php_stream_xport_param param; in php_stream_xport_recvfrom() local
440 memset(&param, 0, sizeof(param)); in php_stream_xport_recvfrom()
442 param.op = STREAM_XPORT_OP_RECV; in php_stream_xport_recvfrom()
443 param.want_addr = addr ? 1 : 0; in php_stream_xport_recvfrom()
444 param.want_textaddr = textaddr ? 1 : 0; in php_stream_xport_recvfrom()
445 param.inputs.buf = buf; in php_stream_xport_recvfrom()
446 param.inputs.buflen = buflen; in php_stream_xport_recvfrom()
447 param.inputs.flags = flags; in php_stream_xport_recvfrom()
449 ret = php_stream_set_option(stream, PHP_STREAM_OPTION_XPORT_API, 0, &param); in php_stream_xport_recvfrom()
453 *addr = param.outputs.addr; in php_stream_xport_recvfrom()
454 *addrlen = param.outputs.addrlen; in php_stream_xport_recvfrom()
457 *textaddr = param.outputs.textaddr; in php_stream_xport_recvfrom()
458 *textaddrlen = param.outputs.textaddrlen; in php_stream_xport_recvfrom()
460 return recvd_len + param.outputs.returncode; in php_stream_xport_recvfrom()
470 php_stream_xport_param param; in php_stream_xport_sendto() local
487 memset(&param, 0, sizeof(param)); in php_stream_xport_sendto()
489 param.op = STREAM_XPORT_OP_SEND; in php_stream_xport_sendto()
490 param.want_addr = addr ? 1 : 0; in php_stream_xport_sendto()
491 param.inputs.buf = (char*)buf; in php_stream_xport_sendto()
492 param.inputs.buflen = buflen; in php_stream_xport_sendto()
493 param.inputs.flags = flags; in php_stream_xport_sendto()
494 param.inputs.addr = addr; in php_stream_xport_sendto()
495 param.inputs.addrlen = addrlen; in php_stream_xport_sendto()
497 ret = php_stream_set_option(stream, PHP_STREAM_OPTION_XPORT_API, 0, &param); in php_stream_xport_sendto()
500 return param.outputs.returncode; in php_stream_xport_sendto()
509 php_stream_xport_param param; in php_stream_xport_shutdown() local
512 memset(&param, 0, sizeof(param)); in php_stream_xport_shutdown()
514 param.op = STREAM_XPORT_OP_SHUTDOWN; in php_stream_xport_shutdown()
515 param.how = how; in php_stream_xport_shutdown()
517 ret = php_stream_set_option(stream, PHP_STREAM_OPTION_XPORT_API, 0, &param); in php_stream_xport_shutdown()
520 return param.outputs.returncode; in php_stream_xport_shutdown()