Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

swow引擎下无法添加UDP协议监听 #4

Open
nash-L opened this issue Dec 21, 2023 · 0 comments
Open

swow引擎下无法添加UDP协议监听 #4

nash-L opened this issue Dec 21, 2023 · 0 comments

Comments

@nash-L
Copy link

nash-L commented Dec 21, 2023

配置信息如下:

[
    'name' => 'UDP server',
    'type' => ServerInterface::SERVER_BASE,
    'host' => '0.0.0.0',
    'port' => 9501,
    'callbacks' => [
        Event::ON_PACKET => ['className', 'methodName'],
    ],
    'sock_type' => \Swow\Socket::TYPE_UDP
]

但是启动监听依然是TCP,检查发现Hyperf\Server\SwowServer并未根据sock_type做相应的调整。希望尽快调整,如果可以的话,我会在后续尝试提交修复。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant