Lines Matching refs:param

202 	php_stream_xport_param param;  in php_stream_xport_bind()  local
205 memset(&param, 0, sizeof(param)); in php_stream_xport_bind()
206 param.op = STREAM_XPORT_OP_BIND; in php_stream_xport_bind()
207 param.inputs.name = (char*)name; in php_stream_xport_bind()
208 param.inputs.namelen = namelen; in php_stream_xport_bind()
209 param.want_errortext = error_text ? 1 : 0; in php_stream_xport_bind()
211 ret = php_stream_set_option(stream, PHP_STREAM_OPTION_XPORT_API, 0, &param); in php_stream_xport_bind()
215 *error_text = param.outputs.error_text; in php_stream_xport_bind()
218 return param.outputs.returncode; in php_stream_xport_bind()
233 php_stream_xport_param param; in php_stream_xport_connect() local
236 memset(&param, 0, sizeof(param)); in php_stream_xport_connect()
237 param.op = asynchronous ? STREAM_XPORT_OP_CONNECT_ASYNC: STREAM_XPORT_OP_CONNECT; in php_stream_xport_connect()
238 param.inputs.name = (char*)name; in php_stream_xport_connect()
239 param.inputs.namelen = namelen; in php_stream_xport_connect()
240 param.inputs.timeout = timeout; in php_stream_xport_connect()
242 param.want_errortext = error_text ? 1 : 0; in php_stream_xport_connect()
244 ret = php_stream_set_option(stream, PHP_STREAM_OPTION_XPORT_API, 0, &param); in php_stream_xport_connect()
248 *error_text = param.outputs.error_text; in php_stream_xport_connect()
251 *error_code = param.outputs.error_code; in php_stream_xport_connect()
253 return param.outputs.returncode; in php_stream_xport_connect()
263 php_stream_xport_param param; in php_stream_xport_listen() local
266 memset(&param, 0, sizeof(param)); in php_stream_xport_listen()
267 param.op = STREAM_XPORT_OP_LISTEN; in php_stream_xport_listen()
268 param.inputs.backlog = backlog; in php_stream_xport_listen()
269 param.want_errortext = error_text ? 1 : 0; in php_stream_xport_listen()
271 ret = php_stream_set_option(stream, PHP_STREAM_OPTION_XPORT_API, 0, &param); in php_stream_xport_listen()
275 *error_text = param.outputs.error_text; in php_stream_xport_listen()
278 return param.outputs.returncode; in php_stream_xport_listen()
292 php_stream_xport_param param; in php_stream_xport_accept() local
295 memset(&param, 0, sizeof(param)); in php_stream_xport_accept()
297 param.op = STREAM_XPORT_OP_ACCEPT; in php_stream_xport_accept()
298 param.inputs.timeout = timeout; in php_stream_xport_accept()
299 param.want_addr = addr ? 1 : 0; in php_stream_xport_accept()
300 param.want_textaddr = textaddr ? 1 : 0; in php_stream_xport_accept()
301 param.want_errortext = error_text ? 1 : 0; in php_stream_xport_accept()
303 ret = php_stream_set_option(stream, PHP_STREAM_OPTION_XPORT_API, 0, &param); in php_stream_xport_accept()
306 *client = param.outputs.client; in php_stream_xport_accept()
308 *addr = param.outputs.addr; in php_stream_xport_accept()
309 *addrlen = param.outputs.addrlen; in php_stream_xport_accept()
312 *textaddr = param.outputs.textaddr; 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()
348 return param.outputs.returncode; in php_stream_xport_get_name()
355 php_stream_xport_crypto_param param; in php_stream_xport_crypto_setup() local
358 memset(&param, 0, sizeof(param)); in php_stream_xport_crypto_setup()
359 param.op = STREAM_XPORT_CRYPTO_OP_SETUP; in php_stream_xport_crypto_setup()
360 param.inputs.method = crypto_method; in php_stream_xport_crypto_setup()
361 param.inputs.session = session_stream; in php_stream_xport_crypto_setup()
363 ret = php_stream_set_option(stream, PHP_STREAM_OPTION_CRYPTO_API, 0, &param); in php_stream_xport_crypto_setup()
366 return param.outputs.returncode; in php_stream_xport_crypto_setup()
376 php_stream_xport_crypto_param param; in php_stream_xport_crypto_enable() local
379 memset(&param, 0, sizeof(param)); in php_stream_xport_crypto_enable()
380 param.op = STREAM_XPORT_CRYPTO_OP_ENABLE; in php_stream_xport_crypto_enable()
381 param.inputs.activate = activate; in php_stream_xport_crypto_enable()
383 ret = php_stream_set_option(stream, PHP_STREAM_OPTION_CRYPTO_API, 0, &param); in php_stream_xport_crypto_enable()
386 return param.outputs.returncode; in php_stream_xport_crypto_enable()
400 php_stream_xport_param param; in php_stream_xport_recvfrom() local
439 memset(&param, 0, sizeof(param)); in php_stream_xport_recvfrom()
441 param.op = STREAM_XPORT_OP_RECV; in php_stream_xport_recvfrom()
442 param.want_addr = addr ? 1 : 0; in php_stream_xport_recvfrom()
443 param.want_textaddr = textaddr ? 1 : 0; in php_stream_xport_recvfrom()
444 param.inputs.buf = buf; in php_stream_xport_recvfrom()
445 param.inputs.buflen = buflen; in php_stream_xport_recvfrom()
446 param.inputs.flags = flags; in php_stream_xport_recvfrom()
448 ret = php_stream_set_option(stream, PHP_STREAM_OPTION_XPORT_API, 0, &param); in php_stream_xport_recvfrom()
452 *addr = param.outputs.addr; in php_stream_xport_recvfrom()
453 *addrlen = param.outputs.addrlen; in php_stream_xport_recvfrom()
456 *textaddr = param.outputs.textaddr; in php_stream_xport_recvfrom()
458 return recvd_len + param.outputs.returncode; in php_stream_xport_recvfrom()
468 php_stream_xport_param param; in php_stream_xport_sendto() local
485 memset(&param, 0, sizeof(param)); in php_stream_xport_sendto()
487 param.op = STREAM_XPORT_OP_SEND; in php_stream_xport_sendto()
488 param.want_addr = addr ? 1 : 0; in php_stream_xport_sendto()
489 param.inputs.buf = (char*)buf; in php_stream_xport_sendto()
490 param.inputs.buflen = buflen; in php_stream_xport_sendto()
491 param.inputs.flags = flags; in php_stream_xport_sendto()
492 param.inputs.addr = addr; in php_stream_xport_sendto()
493 param.inputs.addrlen = addrlen; in php_stream_xport_sendto()
495 ret = php_stream_set_option(stream, PHP_STREAM_OPTION_XPORT_API, 0, &param); in php_stream_xport_sendto()
498 return param.outputs.returncode; in php_stream_xport_sendto()
507 php_stream_xport_param param; in php_stream_xport_shutdown() local
510 memset(&param, 0, sizeof(param)); in php_stream_xport_shutdown()
512 param.op = STREAM_XPORT_OP_SHUTDOWN; in php_stream_xport_shutdown()
513 param.how = how; in php_stream_xport_shutdown()
515 ret = php_stream_set_option(stream, PHP_STREAM_OPTION_XPORT_API, 0, &param); in php_stream_xport_shutdown()
518 return param.outputs.returncode; in php_stream_xport_shutdown()