Lines Matching refs:param
201 php_stream_xport_param param; in php_stream_xport_bind() local
204 memset(¶m, 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, ¶m); 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(¶m, 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, ¶m); 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(¶m, 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, ¶m); 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(¶m, 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, ¶m); 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()
314 *error_text = param.outputs.error_text; in php_stream_xport_accept()
317 return param.outputs.returncode; in php_stream_xport_accept()
327 php_stream_xport_param param; in php_stream_xport_get_name() local
330 memset(¶m, 0, sizeof(param)); in php_stream_xport_get_name()
332 param.op = want_peer ? STREAM_XPORT_OP_GET_PEER_NAME : STREAM_XPORT_OP_GET_NAME; in php_stream_xport_get_name()
333 param.want_addr = addr ? 1 : 0; in php_stream_xport_get_name()
334 param.want_textaddr = textaddr ? 1 : 0; in php_stream_xport_get_name()
336 ret = php_stream_set_option(stream, PHP_STREAM_OPTION_XPORT_API, 0, ¶m); in php_stream_xport_get_name()
340 *addr = param.outputs.addr; in php_stream_xport_get_name()
341 *addrlen = param.outputs.addrlen; in php_stream_xport_get_name()
344 *textaddr = param.outputs.textaddr; in php_stream_xport_get_name()
347 return param.outputs.returncode; in php_stream_xport_get_name()
354 php_stream_xport_crypto_param param; in php_stream_xport_crypto_setup() local
357 memset(¶m, 0, sizeof(param)); in php_stream_xport_crypto_setup()
358 param.op = STREAM_XPORT_CRYPTO_OP_SETUP; in php_stream_xport_crypto_setup()
359 param.inputs.method = crypto_method; in php_stream_xport_crypto_setup()
360 param.inputs.session = session_stream; in php_stream_xport_crypto_setup()
362 ret = php_stream_set_option(stream, PHP_STREAM_OPTION_CRYPTO_API, 0, ¶m); in php_stream_xport_crypto_setup()
365 return param.outputs.returncode; in php_stream_xport_crypto_setup()
375 php_stream_xport_crypto_param param; in php_stream_xport_crypto_enable() local
378 memset(¶m, 0, sizeof(param)); in php_stream_xport_crypto_enable()
379 param.op = STREAM_XPORT_CRYPTO_OP_ENABLE; in php_stream_xport_crypto_enable()
380 param.inputs.activate = activate; in php_stream_xport_crypto_enable()
382 ret = php_stream_set_option(stream, PHP_STREAM_OPTION_CRYPTO_API, 0, ¶m); in php_stream_xport_crypto_enable()
385 return param.outputs.returncode; in php_stream_xport_crypto_enable()
399 php_stream_xport_param param; in php_stream_xport_recvfrom() local
438 memset(¶m, 0, sizeof(param)); in php_stream_xport_recvfrom()
440 param.op = STREAM_XPORT_OP_RECV; in php_stream_xport_recvfrom()
441 param.want_addr = addr ? 1 : 0; in php_stream_xport_recvfrom()
442 param.want_textaddr = textaddr ? 1 : 0; in php_stream_xport_recvfrom()
443 param.inputs.buf = buf; in php_stream_xport_recvfrom()
444 param.inputs.buflen = buflen; in php_stream_xport_recvfrom()
445 param.inputs.flags = flags; in php_stream_xport_recvfrom()
447 ret = php_stream_set_option(stream, PHP_STREAM_OPTION_XPORT_API, 0, ¶m); in php_stream_xport_recvfrom()
451 *addr = param.outputs.addr; in php_stream_xport_recvfrom()
452 *addrlen = param.outputs.addrlen; in php_stream_xport_recvfrom()
455 *textaddr = param.outputs.textaddr; in php_stream_xport_recvfrom()
457 return recvd_len + param.outputs.returncode; in php_stream_xport_recvfrom()
467 php_stream_xport_param param; in php_stream_xport_sendto() local
484 memset(¶m, 0, sizeof(param)); in php_stream_xport_sendto()
486 param.op = STREAM_XPORT_OP_SEND; in php_stream_xport_sendto()
487 param.want_addr = addr ? 1 : 0; in php_stream_xport_sendto()
488 param.inputs.buf = (char*)buf; in php_stream_xport_sendto()
489 param.inputs.buflen = buflen; in php_stream_xport_sendto()
490 param.inputs.flags = flags; in php_stream_xport_sendto()
491 param.inputs.addr = addr; in php_stream_xport_sendto()
492 param.inputs.addrlen = addrlen; in php_stream_xport_sendto()
494 ret = php_stream_set_option(stream, PHP_STREAM_OPTION_XPORT_API, 0, ¶m); in php_stream_xport_sendto()
497 return param.outputs.returncode; in php_stream_xport_sendto()
506 php_stream_xport_param param; in php_stream_xport_shutdown() local
509 memset(¶m, 0, sizeof(param)); in php_stream_xport_shutdown()
511 param.op = STREAM_XPORT_OP_SHUTDOWN; in php_stream_xport_shutdown()
512 param.how = how; in php_stream_xport_shutdown()
514 ret = php_stream_set_option(stream, PHP_STREAM_OPTION_XPORT_API, 0, ¶m); in php_stream_xport_shutdown()
517 return param.outputs.returncode; in php_stream_xport_shutdown()