parameter of * SOL_SOCKET would be used. Other levels, such as * TCP, can be used by specifying the protocol number of that level. * Protocol numbers can be found by using the * getprotobyname function. * @param int $optname The available socket options are the same as those for the * socket_get_option function. * @param int|string|array $optval The option value. * @throws SocketsException * */ function socket_set_option($socket, int $level, int $optname, $optval): void { error_clear_last(); $result = \socket_set_option($socket, $level, $optname, $optval); if ($result === false) { throw SocketsException::createFromPhpError(); } } /** * The socket_shutdown function allows you to stop * incoming, outgoing or all data (the default) from being sent through the * socket * * @param resource $socket A valid socket resource created with socket_create. * @param int $how The value of how can be one of the following: * * possible values for how * * * * 0 * * Shutdown socket reading * * * * 1 * * Shutdown socket writing * * * * 2 * * Shutdown socket reading and writing * * * * * * @throws SocketsException * */ function socket_shutdown($socket, int $how = 2): void { error_clear_last(); $result = \socket_shutdown($socket, $how); if ($result === false) { throw SocketsException::createFromPhpError(); } } /** * Exports the WSAPROTOCOL_INFO structure into shared memory and returns * an identifier to be used with socket_wsaprotocol_info_import. The * exported ID is only valid for the given target_pid. * * @param resource $socket A valid socket resource. * @param int $target_pid The ID of the process which will import the socket. * @return string Returns an identifier to be used for the import * @throws SocketsException * */ function socket_wsaprotocol_info_export($socket, int $target_pid): string { error_clear_last(); $result = \socket_wsaprotocol_info_export($socket, $target_pid); if ($result === false) { throw SocketsException::createFromPhpError(); } return $result; } /** * Imports a socket which has formerly been exported from another process. * * @param string $info_id The ID which has been returned by a former call to * socket_wsaprotocol_info_export. * @return resource Returns the socket resource * @throws SocketsException * */ function socket_wsaprotocol_info_import(string $info_id) { error_clear_last(); $result = \socket_wsaprotocol_info_import($info_id); if ($result === false) { throw SocketsException::createFromPhpError(); } return $result; } /** * Releases the shared memory corresponding to the given info_id. * * @param string $info_id The ID which has been returned by a former call to * socket_wsaprotocol_info_export. * @throws SocketsException * */ function socket_wsaprotocol_info_release(string $info_id): void { error_clear_last(); $result = \socket_wsaprotocol_info_release($info_id); if ($result === false) { throw SocketsException::createFromPhpError(); } } پخش آنلاین - کلاب موویکلاب مووی | مرجع دانلود و تماشای آنلاین فیلم و سریال

برای پخش آنلاین باید در سایت عضو شوید

عضویت

فعلاً نیازی به خرید اشتراک نیست!

کلاب مووی در حال حاضر تمام خدمات خود را به‌صورت کاملاً رایگان در اختیار کاربران قرار می‌دهد و تا مدت‌ها نیازی به خرید اشتراک نخواهید داشت. کافی است یک حساب کاربری در مجموعه کلاب داشته باشید تا هر محتوایی که بخواهید را به‌صورت رایگان دانلود کنید.

راهنمای نصب و استفاده از اپلیکیشن کلاب