Swoole
- 소개
- 설치/구성
- 미리 정의된 상수
- Swoole 함수
- swoole_async_dns_lookup — IP 조회에 대한 비동기 및 비차단 호스트 이름
- swoole_async_read — 비동기적으로 파일 스트림 읽기
- swoole_async_readfile — 비동기식으로 파일 읽기
- swoole_async_set — 비동기 I/O 옵션 업데이트
- swoole_async_write — 비동기적으로 파일 스트림에 데이터 쓰기
- swoole_async_writefile — 비동기적으로 파일에 데이터 쓰기
- swoole_clear_error — 소켓 또는 마지막 오류 코드에서 오류 지우기
- swoole_client_select — 읽기/쓰기 준비가 된 파일 설명 또는 오류 가져오기
- swoole_cpu_num — CPU 수 가져오기
- swoole_errno — 최신 시스템 호출의 오류 코드 가져오기
- swoole_error_log — 로그에 오류 메시지 출력
- swoole_event_add — 소켓의 새로운 콜백 함수를 EventLoop에 추가
- swoole_event_defer — 다음 이벤트 루프에 콜백 함수 추가
- swoole_event_del — 소켓의 모든 이벤트 콜백 함수 제거
- swoole_event_exit — 클라이언트 측에서만 사용 가능한 이벤트 루프 종료
- swoole_event_set — 소켓의 이벤트 콜백 함수 업데이트
- swoole_event_wait — 이벤트 루프 시작
- swoole_event_write — 소켓에 데이터 쓰기
- swoole_get_local_ip — 시스템에 있는 각 NIC의 IPv4 IP 주소 가져오기
- swoole_last_error — 최신 오류 메시지 가져오기
- swoole_load_module — swoole 확장 로드
- swoole_select — 읽기/쓰기 준비가 된 파일 설명 또는 이벤트 루프에서 오류를 선택하십시오.
- swoole_set_process_name — 프로세스 이름 설정
- swoole_strerror — Errno를 오류 메시지로 변환
- swoole_timer_after — 향후에 일회성 콜백 함수를 트리거합니다.
- swoole_timer_exists — 타이머 콜백 함수가 존재하는지 확인
- swoole_timer_tick — 시간 간격으로 타이머 틱 콜백 함수 트리거
- swoole_version — Swoole 버전 받기
- Swoole\Async - Swoole\Async 클래스
- Swoole\Async::dnsLookup — IP 조회에 대한 비동기 및 비차단 호스트 이름.
- Swoole\Async::read — 파일 스트림을 비동기적으로 읽습니다.
- Swoole\Async::readFile — 파일을 비동기적으로 읽습니다.
- Swoole\Async::set — 비동기 I/O 옵션을 업데이트합니다.
- Swoole\Async::write — 비동기적으로 파일 스트림에 데이터를 씁니다.
- Swoole\Async::writeFile — 설명
- Swoole\Atomic - Swoole\Atomic 클래스
- Swoole\Atomic::add — 원자 개체의 값에 숫자를 추가합니다.
- Swoole\Atomic::cmpset — 원자 객체의 값을 비교하고 설정합니다.
- Swoole\Atomic::__construct — swoole 원자 개체를 구성합니다.
- Swoole\Atomic::get — 원자 개체의 현재 값을 가져옵니다.
- Swoole\Atomic::set — 원자 개체에 새 값을 설정합니다.
- Swoole\Atomic::sub — 원자 개체의 값에서 숫자를 뺍니다.
- Swoole\Buffer - Swoole\Buffer 클래스
- Swoole\Buffer::append — 메모리 버퍼 끝에 문자열 또는 이진 데이터를 추가하고 할당된 새 메모리 크기를 반환합니다.
- Swoole\Buffer::clear — 메모리 버퍼를 재설정합니다.
- Swoole\Buffer::__construct — 고정 크기 메모리 블록 할당.
- Swoole\Buffer::__destruct — Swoole 메모리 버퍼를 파괴합니다.
- Swoole\Buffer::expand — 메모리 버퍼의 크기를 확장합니다.
- Swoole\Buffer::read — 오프셋과 길이를 기반으로 메모리 버퍼에서 데이터를 읽습니다.
- Swoole\Buffer::recycle — 메모리 버퍼에서 사용하지 않는 메모리를 OS에 해제합니다.
- Swoole\Buffer::substr — 오프셋과 길이를 기반으로 메모리 버퍼에서 데이터를 읽습니다. 또는 메모리 버퍼에서 데이터를 제거하십시오.
- Swoole\Buffer::__toString — 메모리 버퍼의 문자열 값을 가져옵니다.
- Swoole\Buffer::write — 메모리 버퍼에 데이터를 씁니다. 버퍼에 할당된 메모리는 변경되지 않습니다.
- Swoole\Channel - Swoole\Channel 클래스
- Swoole\Channel::__construct — 스울 채널 구축
- Swoole\Channel::__destruct — Swoole 채널을 파괴.
- Swoole\Channel::pop — swoole 채널에서 데이터를 읽고 팝합니다.
- Swoole\Channel::push — woole 채널에 데이터를 쓰고 푸시합니다.
- Swoole\Channel::stats — swoole 채널의 통계를 가져옵니다.
- Swoole\Client - Swoole\Client 클래스
- Swoole\Client::close — 설정된 연결을 닫습니다.
- Swoole\Client::connect — 원격 TCP 또는 UDP 포트에 연결합니다.
- Swoole\Client::__construct — SSL을 사용하거나 사용하지 않고 Swoole 동기화 또는 비동기 TCP/UDP 클라이언트를 만듭니다.
- Swoole\Client::__destruct — Swoole 클라이언트를 파괴
- Swoole\Client::getpeername — 연결의 원격 소켓 이름을 가져옵니다.
- Swoole\Client::getsockname — 연결의 로컬 소켓 이름을 가져옵니다.
- Swoole\Client::isConnected — 연결이 설정되었는지 확인합니다.
- Swoole\Client::on — 이벤트에 의해 트리거되는 콜백 함수를 추가합니다.
- Swoole\Client::pause — 데이터 수신을 일시 중지합니다.
- Swoole\Client::pipe — 데이터를 다른 파일 설명자로 리디렉션합니다.
- Swoole\Client::recv — 원격 소켓에서 데이터를 수신합니다.
- Swoole\Client::resume — 데이터 수신을 재개합니다.
- Swoole\Client::send — 원격 TCP 소켓에 데이터를 보냅니다.
- Swoole\Client::sendfile — 원격 TCP 소켓으로 파일을 보냅니다.
- Swoole\Client::sendto — 원격 UDP 주소로 데이터를 보냅니다.
- Swoole\Client::set — 연결이 설정되기 전에 Swoole 클라이언트 매개변수를 설정하십시오.
- Swoole\Client::sleep — 시스템 이벤트 루프에서 TCP 클라이언트를 제거합니다.
- Swoole\Client::wakeup — TCP 클라이언트를 시스템 이벤트 루프에 다시 추가하십시오.
- Swoole\Connection\Iterator - Swoole\Connection\Iterator 클래스
- Swoole\Connection\Iterator::count — 연결 수를 계산합니다.
- Swoole\Connection\Iterator::current — 현재 연결 항목을 반환합니다.
- Swoole\Connection\Iterator::key — 현재 연결의 키를 반환합니다.
- Swoole\Connection\Iterator::next — 다음 연결로 이동합니다.
- Swoole\Connection\Iterator::offsetExists — 오프셋이 있는지 확인하십시오.
- Swoole\Connection\Iterator::offsetGet — 검색할 오프셋입니다.
- Swoole\Connection\Iterator::offsetSet — 지정된 오프셋에 연결을 할당합니다.
- Swoole\Connection\Iterator::offsetUnset — 오프셋 설정을 해제합니다.
- Swoole\Connection\Iterator::rewind — Rewinds iterator
- Swoole\Connection\Iterator::valid — 현재 위치가 유효한지 확인하십시오.
- Swoole\Coroutine - Swoole\Coroutine 클래스
- Swoole\Coroutine::call_user_func_array — 매개변수 배열로 콜백 호출
- Swoole\Coroutine::call_user_func — 첫 번째 매개변수에 의해 제공된 콜백 호출
- Swoole\Coroutine::cli_wait — 설명
- Swoole\Coroutine::create — 설명
- Swoole\Coroutine\Client::close — 설명
- Swoole\Coroutine\Client::connect — 설명
- Swoole\Coroutine\Client::__construct — 설명
- Swoole\Coroutine\Client::__destruct — 설명
- Swoole\Coroutine\Client::getpeername — 설명
- Swoole\Coroutine\Client::getsockname — 설명
- Swoole\Coroutine\Client::isConnected — 설명
- Swoole\Coroutine\Client::recv — 설명
- Swoole\Coroutine\Client::send — 설명
- Swoole\Coroutine\Client::sendfile — 설명
- Swoole\Coroutine\Client::sendto — 설명
- Swoole\Coroutine\Client::set — 설명
- Swoole\Coroutine\Http\Client::addFile — 설명
- Swoole\Coroutine\Http\Client::close — 설명
- Swoole\Coroutine\Http\Client::__construct — 설명
- Swoole\Coroutine\Http\Client::__destruct — 설명
- Swoole\Coroutine\Http\Client::execute — 설명
- Swoole\Coroutine\Http\Client::get — 설명
- Swoole\Coroutine\Http\Client::getDefer — 설명
- Swoole\Coroutine\Http\Client::isConnected — 설명
- Swoole\Coroutine\Http\Client::post — 설명
- Swoole\Coroutine\Http\Client::recv — 설명
- Swoole\Coroutine\Http\Client::set — 설명
- Swoole\Coroutine\Http\Client::setCookies — 설명
- Swoole\Coroutine\Http\Client::setData — 설명
- Swoole\Coroutine\Http\Client::setDefer — 설명
- Swoole\Coroutine\Http\Client::setHeaders — 설명
- Swoole\Coroutine\Http\Client::setMethod — 설명
- Swoole\Coroutine\MySQL::close — 설명
- Swoole\Coroutine\MySQL::connect — 설명
- Swoole\Coroutine\MySQL::__construct — 설명
- Swoole\Coroutine\MySQL::__destruct — 설명
- Swoole\Coroutine\MySQL::getDefer — 설명
- Swoole\Coroutine\MySQL::query — 설명
- Swoole\Coroutine\MySQL::recv — 설명
- Swoole\Coroutine\MySQL::setDefer — 설명
- Swoole\Coroutine::getuid — 설명
- Swoole\Coroutine::resume — 설명
- Swoole\Coroutine::suspend — 설명
- Swoole\Event - Swoole\Event 클래스
- Swoole\Event::add — 소켓의 새로운 콜백 함수를 EventLoop에 추가합니다.
- Swoole\Event::defer — 다음 이벤트 루프에 콜백 함수를 추가합니다.
- Swoole\Event::del — 소켓의 모든 이벤트 콜백 함수를 제거합니다.
- Swoole\Event::exit — 클라이언트 측에서만 사용할 수 있는 이벤트 루프를 종료합니다.
- Swoole\Event::set — 소켓의 이벤트 콜백 함수를 업데이트합니다.
- Swoole\Event::wait — 설명
- Swoole\Event::write — 소켓에 데이터를 씁니다.
- Swoole\Exception - Swoole\Exception 클래스
- Swoole\Http\Client - Swoole\Http\Client 클래스
- Swoole\Http\Client::addFile — 게시물 양식에 파일을 추가합니다.
- Swoole\Http\Client::close — http 연결을 닫습니다.
- Swoole\Http\Client::__construct — 비동기 HTTP 클라이언트를 구성합니다.
- Swoole\Http\Client::__destruct — HTTP 클라이언트를 파괴
- Swoole\Http\Client::download — 원격 서버에서 파일을 다운로드합니다.
- Swoole\Http\Client::execute — 매개변수를 설정한 후 HTTP 요청을 보냅니다.
- Swoole\Http\Client::get — 원격 서버에 GET http 요청을 보냅니다.
- Swoole\Http\Client::isConnected — HTTP 연결이 연결되어 있는지 확인합니다.
- Swoole\Http\Client::on — 이벤트 이름으로 콜백 함수를 등록합니다.
- Swoole\Http\Client::post — 원격 서버에 POST http 요청을 보냅니다.
- Swoole\Http\Client::push — websocket 클라이언트에 데이터를 푸시합니다.
- Swoole\Http\Client::set — HTTP 클라이언트 매개변수를 업데이트하십시오.
- Swoole\Http\Client::setCookies — http 요청 쿠키를 설정합니다.
- Swoole\Http\Client::setData — HTTP 요청 본문 데이터를 설정합니다.
- Swoole\Http\Client::setHeaders — HTTP 요청 헤더를 설정합니다.
- Swoole\Http\Client::setMethod — Set the HTTP request method.
- Swoole\Http\Client::upgrade — Upgrade to websocket protocol.
- Swoole\Http\Request - Swoole\Http\Request 클래스
- Swoole\Http\Request::__destruct — Destruct the HTTP request.
- Swoole\Http\Request::rawcontent — Get the raw HTTP POST body.
- Swoole\Http\Response - Swoole\Http\Response 클래스
- Swoole\Http\Response::cookie — Set the cookies of the HTTP response.
- Swoole\Http\Response::__destruct — Destruct the HTTP response.
- Swoole\Http\Response::end — Send data for the HTTP request and finish the response.
- Swoole\Http\Response::gzip — Enable the gzip of response content.
- Swoole\Http\Response::header — Set the HTTP response headers.
- Swoole\Http\Response::initHeader — Init the HTTP response header.
- Swoole\Http\Response::rawcookie — Set the raw cookies to the HTTP response.
- Swoole\Http\Response::sendfile — Send file through the HTTP response.
- Swoole\Http\Response::status — Set the status code of the HTTP response.
- Swoole\Http\Response::write — Append HTTP body content to the HTTP response.
- Swoole\Http\Server - Swoole\Http\Server 클래스
- Swoole\Http\Server::on — 콜백 함수를 이벤트 이름으로 HTTP 서버에 바인딩합니다.
- Swoole\Http\Server::start — swoole http 서버를 시작합니다.
- Swoole\Lock - Swoole\Lock 클래스
- Swoole\Lock::__construct — Construct a memory lock.
- Swoole\Lock::__destruct — Destory a Swoole memory lock.
- Swoole\Lock::lock_read — Lock a read-write lock for reading.
- Swoole\Lock::lock — 잠금을 획득하려고 합니다. 잠금을 사용할 수 없으면 차단됩니다.
- Swoole\Lock::trylock_read — 읽기용 읽기-쓰기 잠금을 시도하고 잠금을 사용할 수 없는 경우에도 즉시 반환합니다.
- Swoole\Lock::trylock — 금을 획득하고 잠금을 사용할 수 없어도 즉시 반환을 시도합니다.
- Swoole\Lock::unlock — 잠금을 해제합니다.
- Swoole\Mmap - Swoole\Mmap 클래스
- Swoole\Mmap::open — 파일을 메모리에 매핑하고 PHP 스트림 작업에서 사용할 수 있는 스트림 리소스를 반환합니다.
- Swoole\MySQL - Swoole\MySQL 클래스
- Swoole\MySQL::close — 비동기 MySQL 연결을 닫습니다.
- Swoole\MySQL::connect — 원격 MySQL 서버에 연결합니다.
- Swoole\MySQL::__construct — 비동기 MySQL 클라이언트를 구성합니다.
- Swoole\MySQL::__destruct — Destory the async MySQL client.
- Swoole\MySQL::getBuffer — 설명
- Swoole\MySQL::on — 이벤트 이름을 기반으로 콜백 함수를 등록합니다.
- Swoole\MySQL::query — SQL 쿼리를 실행합니다.
- Swoole\MySQL\Exception - Swoole\MySQL\Exception 클래스
- Swoole\Process - Swoole\Process 클래스
- Swoole\Process::alarm — High precision timer which triggers signal with fixed interval.
- Swoole\Process::close — Close the pipe to the child process.
- Swoole\Process::__construct — Construct a process.
- Swoole\Process::daemon — Change the process to be a daemon process.
- Swoole\Process::__destruct — Destory the process.
- Swoole\Process::exec — Execute system commands.
- Swoole\Process::exit — Stop the child processes.
- Swoole\Process::freeQueue — Destroy the message queue created by swoole_process::useQueue.
- Swoole\Process::kill — Send signal to the child process.
- Swoole\Process::name — Set name of the process.
- Swoole\Process::pop — Read and pop data from the message queue.
- Swoole\Process::push — Write and push data into the message queue.
- Swoole\Process::read — Read data sending to the process.
- Swoole\Process::signal — Send signal to the child processes.
- Swoole\Process::start — Start the process.
- Swoole\Process::statQueue — Get the stats of the message queue used as the communication method between processes.
- Swoole\Process::useQueue — Create a message queue as the communication method between the parent process and child processes.
- Swoole\Process::wait — Wait for the events of child processes.
- Swoole\Process::write — Write data into the pipe and communicate with the parent process or child processes.
- Swoole\Redis\Server - Swoole\Redis\Server 클래스
- Swoole\Serialize - Swoole\Serialize 클래스
- Swoole\Serialize::pack — 데이터를 직렬화합니다.
- Swoole\Serialize::unpack — 데이터를 직렬화 해제합니다.
- Swoole\Server - Swoole\Server 클래스
- Swoole\Server::addlistener — 서버에 새 리스너를 추가합니다.
- Swoole\Server::addProcess — 사용자 정의 swoole_process를 서버에 추가합니다.
- Swoole\Server::after — 일정 시간 후에 콜백 함수를 트리거합니다.
- Swoole\Server::bind — 사용자 정의 사용자 ID에 연결을 바인드합니다.
- Swoole\Server::clearTimer — 타이머를 중지하고 파괴하십시오.
- Swoole\Server::close — 클라이언트에 대한 연결을 닫습니다.
- Swoole\Server::confirm — 연결 상태를 확인하십시오.
- Swoole\Server::connection_info — 파일 설명으로 연결 정보를 가져옵니다.
- Swoole\Server::connection_list — 설정된 모든 연결을 가져옵니다.
- Swoole\Server::__construct — Swoole 서버를 구축합니다.
- Swoole\Server::defer — 현재 EventLoop의 끝에서 콜백 함수의 실행을 지연합니다.
- Swoole\Server\Port::__construct — 서버 포트 구축
- Swoole\Server\Port::__destruct — Destory server port
- Swoole\Server\Port::on — 이벤트별로 콜백 함수를 등록합니다.
- Swoole\Server\Port::set — 서버 포트의 프로토콜을 설정합니다.
- Swoole\Server::exist — 연결이 존재하는지 확인하십시오.
- Swoole\Server::finish — 작업이 완료되면 작업자 프로세스에 결과를 보내기 위해 작업 프로세스에서 사용됩니다.
- Swoole\Server::getClientInfo — 파일 설명으로 연결 정보를 가져옵니다.
- Swoole\Server::getClientList — 설정된 모든 연결을 가져옵니다.
- Swoole\Server::getLastError — 가장 최근에 발생한 오류의 오류 코드를 가져옵니다.
- Swoole\Server::heartbeat — 서버의 모든 연결을 확인하십시오.
- Swoole\Server::listen — 주어진 IP 및 포트, 소켓 유형에서 수신 대기합니다.
- Swoole\Server::on — 이벤트 이름으로 콜백 함수를 등록합니다.
- Swoole\Server::pause — 연결에서 데이터 수신을 중지합니다.
- Swoole\Server::protect — 연결을 보호 모드로 설정합니다.
- Swoole\Server::reload — 모든 작업자 프로세스를 다시 시작하십시오.
- Swoole\Server::resume — 연결에서 데이터 수신을 시작합니다.
- Swoole\Server::send — 클라이언트에 데이터를 보냅니다.
- Swoole\Server::sendfile — 연결에 파일을 보냅니다.
- Swoole\Server::sendMessage — ID로 작업자 프로세스에 메시지를 보냅니다.
- Swoole\Server::sendto — 원격 UDP 주소로 데이터를 보냅니다.
- Swoole\Server::sendwait — 차단 방식으로 원격 소켓에 데이터를 보냅니다.
- Swoole\Server::set — swoole 서버의 런타임 설정을 지정합니다.
- Swoole\Server::shutdown — 마스터 서버 프로세스를 종료합니다. 이 함수는 작업자 프로세스에서 호출할 수 있습니다.
- Swoole\Server::start — Swoole 서버를 시작합니다.
- Swoole\Server::stats — Swoole 서버의 통계를 가져옵니다.
- Swoole\Server::stop — Swoole 서버를 중지합니다.
- Swoole\Server::task — 작업 작업자 프로세스에 데이터를 보냅니다.
- Swoole\Server::taskwait — 블로킹 방식으로 작업 작업자 프로세스에 데이터를 보냅니다.
- Swoole\Server::taskWaitMulti — 여러 작업을 동시에 실행합니다.
- Swoole\Server::tick — 주어진 시간 간격마다 주어진 함수를 반복합니다.
- Swoole\Table - Swoole\Table 클래스
- Swoole\Table::column — 열의 데이터 유형과 크기를 설정합니다.
- Swoole\Table::__construct — 고정 크기의 Swoole 메모리 테이블을 구성합니다.
- Swoole\Table::count — 테이블의 행 수를 계산하거나 $mode = 1인 경우 테이블의 모든 요소를 계산합니다.
- Swoole\Table::create — swoole 메모리 테이블을 만듭니다.
- Swoole\Table::current — 현재 행을 가져옵니다.
- Swoole\Table::decr — Swoole 테이블의 값을 $row_key 및 $column_key만큼 감소시킵니다.
- Swoole\Table::del — $row_key로 Swoole 테이블의 행을 삭제합니다.
- Swoole\Table::destroy — Destroy the Swoole table.
- Swoole\Table::exist — $row_key에 의해 행이 존재하는지 확인하십시오.
- Swoole\Table::get — $row_key 및 $column_key로 Swoole 테이블의 값을 가져옵니다.
- Swoole\Table::incr — $row_key 및 $column_key만큼 값을 증가시킵니다.
- Swoole\Table::key — 현재 행의 키를 가져옵니다.
- Swoole\Table::next — Iterator the next row.
- Swoole\Table::rewind — Rewind the iterator.
- Swoole\Table::set — $row_key로 테이블의 행을 업데이트합니다.
- Swoole\Table::valid — 현재 행이 유효한 경우 현재를 확인하십시오.
- Swoole\Timer - Swoole\Timer 클래스
- Swoole\Timer::after — Trigger a callback function after a period of time.
- Swoole\Timer::clear — Delete a timer by timer ID.
- Swoole\Timer::exists — 타이머가 존재하는지 확인하십시오.
- Swoole\Timer::tick — 주어진 시간 간격마다 주어진 함수를 반복합니다.
- Swoole\WebSocket\Frame - Swoole\WebSocket\Frame 클래스
- Swoole\WebSocket\Server - Swoole\WebSocket\Server 클래스
- Swoole\WebSocket\Server::exist — 파일 디스크립터가 존재하는지 확인하십시오.
- Swoole\WebSocket\Server::on — 이벤트 콜백 함수 등록
- Swoole\WebSocket\Server::pack — 단일 프레임으로 보낼 바이너리 데이터 팩을 가져옵니다.
- Swoole\WebSocket\Server::push — 원격 클라이언트에 데이터를 푸시합니다.
- Swoole\WebSocket\Server::unpack — 클라이언트에서 받은 바이너리 데이터의 압축을 풉니다.