Skip to content

Socket configuration not supported in Xamarin on Android #86

@SittenSpynne

Description

@SittenSpynne

I'm interested in writing a mobile application that communicates with some devices using this library. I'm doing some quick hacking to get a feel for it and ran into an error right away. Upon attempting to send a request on an Android device, I get a SocketException with message "Protocol option not supported."

This seems to originate in UDPChannel.cs in SetupUDPSocket(). The socket option "Packet Information" is set, but it seems Xamarin is reporting this isn't supported. If I clone the code and comment this line out, everything seems to work, but I don't understand what this option does so I don't have a good way to know what I should be testing to see if it matters.

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