Skip to content

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

Open

Description

@nash-L

配置信息如下:

[
    '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做相应的调整。希望尽快调整,如果可以的话,我会在后续尝试提交修复。

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions