current location:Home > Technical Articles > PHP Framework > Swoole

  • What protocol does swoole use?
    What protocol does swoole use?
    Swoole has implemented a data cache area at the bottom layer, and has built-in several commonly used protocol types, such as the EOF terminator protocol and the fixed header plus body protocol. A fixed set of strings /r/n that will not appear in normal data are used as markers for the split protocol, which is called the EOF protocol.
    Swoole 2611 2019-12-06 10:44:45
  • How to use swoole event
    How to use swoole event
    Swoole\Server is an event-driven model, and all business logic code must be written in the event callback function. All event callbacks occur after $server->start; the last event when the server shutdown program terminates is onShutdown.
    Swoole 2049 2019-12-06 10:31:40
  • How to use swoole constants
    How to use swoole constants
    swoole uses a constant, Client::MSG_WAITALL, for the second parameter of the Client->recv() method, blocking and waiting until data of the specified length is received before returning.
    Swoole 2576 2019-12-06 10:12:58
  • How to use swoole
    How to use swoole
    Swoole is written in pure C language and provides asynchronous multi-threaded server in PHP language, asynchronous TCP/UDP network client, asynchronous MySQL, asynchronous Redis, database connection pool, AsyncTask, message queue, millisecond timer, asynchronous file reading and writing, asynchronous DNS query.
    Swoole 3202 2019-12-06 10:06:32
  • How to restart swoole smoothly
    How to restart swoole smoothly
    In swoole, we can send various signals to the main process, and the main process performs different processing according to the type of signal received. SIGUSR1 will restart all Worker processes smoothly; SIGUSR2 will restart all Task processes smoothly.
    Swoole 3575 2019-12-06 09:58:13
  • How to set timer in swoole
    How to set timer in swoole
    To set the timer, swoole can use its own JavaScript setInterval/setTimeout asynchronous high-precision timer, with a granularity of milliseconds. It's also very simple to use.
    Swoole 2326 2019-12-06 09:50:46
  • How to install swoole in docker
    How to install swoole in docker
    How to install swoole with docker: 1. Use the docker pull php command to download the PHP image, and then use the docker command to create the container. 2. Use docker to install swoole in the container.
    Swoole 6272 2019-12-06 09:47:56
  • What swoole can do
    What swoole can do
    Swoole can be widely used in the Internet, mobile communications, enterprise software, cloud computing, online games, Internet of Things (IOT), Internet of Vehicles, smart homes and other fields. Using PHP + Swoole as a network communication framework can greatly improve the efficiency of enterprise IT R&D teams.
    Swoole 2419 2019-12-06 09:40:40
  • How to use swoole task
    How to use swoole task
    Swoole is implemented by the worker process processing the data request and assigning it to the task process for execution. Swoole asynchronous task mainly implements the execution of calling asynchronous tasks. The bottom layer of the task uses Unix Socket pipe communication, which is full memory and has no IO consumption.
    Swoole 3017 2019-12-06 09:26:16
  • what is swoole fd
    what is swoole fd
    swoole fd is the file descriptor of the TCP connection, which is the unique identifier of the client in swoole_server; fd is reused, and when the connection is closed, the fd will be reused by the new incoming connection; the TCP connection fd being maintained will not be reused. use.
    Swoole 3535 2019-12-06 09:16:03
  • The reason why swoole is higher than go
    The reason why swoole is higher than go
    Go's processing of IO events is single-threaded, unable to utilize multiple cores, and its throughput is slightly weaker than swoole; in the actual TCP/UDP intensive IO stress test, swoole performed slightly better than go. swoole uses multi-threaded eventloop to handle IO events, and multiple processes execute user-level PHP code.
    Swoole 4357 2019-12-06 09:08:04
  • Why is swoole better than php?
    Why is swoole better than php?
    Compared with apache/fpm, the swoole framework mainly saves the performance loss caused by the creation and destruction of each request of the PHP framework and global objects. The swoole framework provides programmers with the greatest space, and global objects unrelated to http requests only need to be constructed once. Cache control of certain objects and data can also be performed in the program.
    Swoole 3316 2019-12-05 14:41:40
  • How to upgrade swoole in php
    How to upgrade swoole in php
    We can check the swoole version through the php --ri command, compile and upgrade, and only need to download the latest stable version from the pecl official website, which is equivalent to reinstalling the new version. To upgrade pecl, use the pecl upgrade swoole command.
    Swoole 4469 2019-12-05 14:18:37
  • How to enable swoole extension in PHP
    How to enable swoole extension in PHP
    After downloading the Swoole extension source code, compile and install it according to the standard PHP extension compilation method. After compilation and installation, modify php.ini and add extension=swoole.so to enable the swoole extension.
    Swoole 3805 2019-12-05 14:10:12
  • How to install swoole extension in phpstudy
    How to install swoole extension in phpstudy
    Download the swoole extension and unzip it; cd swoole-src-swoole-1.7.9-alpha, sudo vi /root/.bashrc; Add export PATH=/phpstudy/server/php/bin:$PATH to the last line
    Swoole 13159 2019-12-05 14:01:34

Tool Recommendations

jQuery enterprise message form contact code

jQuery enterprise message form contact code is a simple and practical enterprise message form and contact us introduction page code.
form button
2024-02-29

HTML5 MP3 music box playback effects

HTML5 MP3 music box playback special effect is an mp3 music player based on HTML5 css3 to create cute music box emoticons and click the switch button.

HTML5 cool particle animation navigation menu special effects

HTML5 cool particle animation navigation menu special effect is a special effect that changes color when the navigation menu is hovered by the mouse.
Menu navigation
2024-02-29

jQuery visual form drag and drop editing code

jQuery visual form drag and drop editing code is a visual form based on jQuery and bootstrap framework.
form button
2024-02-29

Organic fruit and vegetable supplier web template Bootstrap5

An organic fruit and vegetable supplier web template-Bootstrap5
Bootstrap template
2023-02-03

Bootstrap3 multifunctional data information background management responsive web page template-Novus

Bootstrap3 multifunctional data information background management responsive web page template-Novus
backend template
2023-02-02

Real estate resource service platform web page template Bootstrap5

Real estate resource service platform web page template Bootstrap5
Bootstrap template
2023-02-02

Simple resume information web template Bootstrap4

Simple resume information web template Bootstrap4
Bootstrap template
2023-02-02

Cute summer elements vector material (EPS PNG)

This is a cute summer element vector material, including the sun, sun hat, coconut tree, bikini, airplane, watermelon, ice cream, ice cream, cold drink, swimming ring, flip-flops, pineapple, conch, shell, starfish, crab, Lemons, sunscreen, sunglasses, etc., the materials are provided in EPS and PNG formats, including JPG previews.
PNG material
2024-05-09

Four red 2023 graduation badges vector material (AI EPS PNG)

This is a red 2023 graduation badge vector material, four in total, available in AI, EPS and PNG formats, including JPG preview.
PNG material
2024-02-29

Singing bird and cart filled with flowers design spring banner vector material (AI EPS)

This is a spring banner vector material designed with singing birds and a cart full of flowers. It is available in AI and EPS formats, including JPG preview.
banner picture
2024-02-29

Golden graduation cap vector material (EPS PNG)

This is a golden graduation cap vector material, available in EPS and PNG formats, including JPG preview.
PNG material
2024-02-27

Home Decor Cleaning and Repair Service Company Website Template

Home Decoration Cleaning and Maintenance Service Company Website Template is a website template download suitable for promotional websites that provide home decoration, cleaning, maintenance and other service organizations. Tip: This template calls the Google font library, and the page may open slowly.
Front-end template
2024-05-09

Fresh color personal resume guide page template

Fresh color matching personal job application resume guide page template is a personal job search resume work display guide page web template download suitable for fresh color matching style. Tip: This template calls the Google font library, and the page may open slowly.
Front-end template
2024-02-29

Designer Creative Job Resume Web Template

Designer Creative Job Resume Web Template is a downloadable web template for personal job resume display suitable for various designer positions. Tip: This template calls the Google font library, and the page may open slowly.
Front-end template
2024-02-28

Modern engineering construction company website template

The modern engineering and construction company website template is a downloadable website template suitable for promotion of the engineering and construction service industry. Tip: This template calls the Google font library, and the page may open slowly.
Front-end template
2024-02-28
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!