Lines Matching refs:param
204 php_stream_xport_param param; in php_stream_xport_bind() local
207 memset(¶m, 0, sizeof(param)); in php_stream_xport_bind()
208 param.op = STREAM_XPORT_OP_BIND; in php_stream_xport_bind()
209 param.inputs.name = (char*)name; in php_stream_xport_bind()
210 param.inputs.namelen = namelen; in php_stream_xport_bind()
211 param.want_errortext = error_text ? 1 : 0; in php_stream_xport_bind()
213 ret = php_stream_set_option(stream, PHP_STREAM_OPTION_XPORT_API, 0, ¶m); in php_stream_xport_bind()
217 *error_text = param.outputs.error_text; in php_stream_xport_bind()
220 return param.outputs.returncode; in php_stream_xport_bind()
235 php_stream_xport_param param; in php_stream_xport_connect() local
238 memset(¶m, 0, sizeof(param)); in php_stream_xport_connect()
239 param.op = asynchronous ? STREAM_XPORT_OP_CONNECT_ASYNC: STREAM_XPORT_OP_CONNECT; in php_stream_xport_connect()
240 param.inputs.name = (char*)name; in php_stream_xport_connect()
241 param.inputs.namelen = namelen; in php_stream_xport_connect()
242 param.inputs.timeout = timeout; in php_stream_xport_connect()
244 param.want_errortext = error_text ? 1 : 0; in php_stream_xport_connect()
246 ret = php_stream_set_option(stream, PHP_STREAM_OPTION_XPORT_API, 0, ¶m); in php_stream_xport_connect()
250 *error_text = param.outputs.error_text; in php_stream_xport_connect()
253 *error_code = param.outputs.error_code; in php_stream_xport_connect()
255 return param.outputs.returncode; in php_stream_xport_connect()
265 php_stream_xport_param param; in php_stream_xport_listen() local
268 memset(¶m, 0, sizeof(param)); in php_stream_xport_listen()
269 param.op = STREAM_XPORT_OP_LISTEN; in php_stream_xport_listen()
270 param.inputs.backlog = backlog; in php_stream_xport_listen()
271 param.want_errortext = error_text ? 1 : 0; in php_stream_xport_listen()
273 ret = php_stream_set_option(stream, PHP_STREAM_OPTION_XPORT_API, 0, ¶m); in php_stream_xport_listen()
277 *error_text = param.outputs.error_text; in php_stream_xport_listen()
280 return param.outputs.returncode; in php_stream_xport_listen()
294 php_stream_xport_param param; in php_stream_xport_accept() local
297 memset(¶m, 0, sizeof(param)); in php_stream_xport_accept()
299 param.op = STREAM_XPORT_OP_ACCEPT; in php_stream_xport_accept()
300 param.inputs.timeout = timeout; in php_stream_xport_accept()
301 param.want_addr = addr ? 1 : 0; in php_stream_xport_accept()
302 param.want_textaddr = textaddr ? 1 : 0; in php_stream_xport_accept()
303 param.want_errortext = error_text ? 1 : 0; in php_stream_xport_accept()
305 ret = php_stream_set_option(stream, PHP_STREAM_OPTION_XPORT_API, 0, ¶m); in php_stream_xport_accept()
308 *client = param.outputs.client; in php_stream_xport_accept()
310 *addr = param.outputs.addr; in php_stream_xport_accept()
311 *addrlen = param.outputs.addrlen; in php_stream_xport_accept()
314 *textaddr = param.outputs.textaddr; in php_stream_xport_accept()
317 *error_text = param.outputs.error_text; in php_stream_xport_accept()
320 return param.outputs.returncode; in php_stream_xport_accept()
330 php_stream_xport_param param; in php_stream_xport_get_name() local
333 memset(¶m, 0, sizeof(param)); in php_stream_xport_get_name()
335 param.op = want_peer ? STREAM_XPORT_OP_GET_PEER_NAME : STREAM_XPORT_OP_GET_NAME; in php_stream_xport_get_name()
336 param.want_addr = addr ? 1 : 0; in php_stream_xport_get_name()
337 param.want_textaddr = textaddr ? 1 : 0; in php_stream_xport_get_name()
339 ret = php_stream_set_option(stream, PHP_STREAM_OPTION_XPORT_API, 0, ¶m); in php_stream_xport_get_name()
343 *addr = param.outputs.addr; in php_stream_xport_get_name()
344 *addrlen = param.outputs.addrlen; in php_stream_xport_get_name()
347 *textaddr = param.outputs.textaddr; in php_stream_xport_get_name()
350 return param.outputs.returncode; in php_stream_xport_get_name()
357 php_stream_xport_crypto_param param; in php_stream_xport_crypto_setup() local
360 memset(¶m, 0, sizeof(param)); in php_stream_xport_crypto_setup()
361 param.op = STREAM_XPORT_CRYPTO_OP_SETUP; in php_stream_xport_crypto_setup()
362 param.inputs.method = crypto_method; in php_stream_xport_crypto_setup()
363 param.inputs.session = session_stream; in php_stream_xport_crypto_setup()
365 ret = php_stream_set_option(stream, PHP_STREAM_OPTION_CRYPTO_API, 0, ¶m); in php_stream_xport_crypto_setup()
368 return param.outputs.returncode; in php_stream_xport_crypto_setup()
378 php_stream_xport_crypto_param param; in php_stream_xport_crypto_enable() local
381 memset(¶m, 0, sizeof(param)); in php_stream_xport_crypto_enable()
382 param.op = STREAM_XPORT_CRYPTO_OP_ENABLE; in php_stream_xport_crypto_enable()
383 param.inputs.activate = activate; in php_stream_xport_crypto_enable()
385 ret = php_stream_set_option(stream, PHP_STREAM_OPTION_CRYPTO_API, 0, ¶m); in php_stream_xport_crypto_enable()
388 return param.outputs.returncode; in php_stream_xport_crypto_enable()
402 php_stream_xport_param param; in php_stream_xport_recvfrom() local
441 memset(¶m, 0, sizeof(param)); in php_stream_xport_recvfrom()
443 param.op = STREAM_XPORT_OP_RECV; in php_stream_xport_recvfrom()
444 param.want_addr = addr ? 1 : 0; in php_stream_xport_recvfrom()
445 param.want_textaddr = textaddr ? 1 : 0; in php_stream_xport_recvfrom()
446 param.inputs.buf = buf; in php_stream_xport_recvfrom()
447 param.inputs.buflen = buflen; in php_stream_xport_recvfrom()
448 param.inputs.flags = flags; in php_stream_xport_recvfrom()
450 ret = php_stream_set_option(stream, PHP_STREAM_OPTION_XPORT_API, 0, ¶m); in php_stream_xport_recvfrom()
454 *addr = param.outputs.addr; in php_stream_xport_recvfrom()
455 *addrlen = param.outputs.addrlen; in php_stream_xport_recvfrom()
458 *textaddr = param.outputs.textaddr; 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(¶m, 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, ¶m); 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(¶m, 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, ¶m); in php_stream_xport_shutdown()
520 return param.outputs.returncode; in php_stream_xport_shutdown()