Skip to content

It always crash when I click scan button. #1

@yuchin067

Description

@yuchin067

Hi Albert,
I try to run wsdiscovery sample code on iOS 9.3.2 in iPad with Xcode 7.3, but it always crash when I click scan button.
Here is log message before it crash:

MAC 020000000000
gpLocalAddr is set to 10.0.0.87, MAC is 020000000000
Opening multicast client socket 4 for ip 10.0.0.87...OK.
Setting the local interface...OK
Opening multicast server socket 5 for ip 239.255.255.250...OK.
Setting SO_REUSEADDR...OK.
setsockopt IP_ADD_MEMBERSHIP for 10.0.0.87 ...OK.
Binding port:3702 socket...OK.
Sending SendHello message...OK
Sending SendHello message...OK
Sending SendHello message...OK
/Users/ryan/Downloads/wsdiscovery-master/WSDiscovery/wsdiscovery_api.m -[WSDiscovery_API InitServer:] :202 nIndex=8 pSrc=10.0.0.87:53420, pDst=239.255.255.250
/Users/ryan/Downloads/wsdiscovery-master/WSDiscovery/wsdiscovery_api.m -[WSDiscovery_API InitServer:] :203 localaddr=10.0.0.87 port=53420
RecvThread start....
(lldb)

I can not find any reason for it to crash. Could you fix the issue?
Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions