dotnet Problem

Hello Everyone,

Now Unity iOS supports two .NET API compatibility levels: (.NET 2.0) and (.NET 2.0)subset

Is that mean socket.sendasync() can not be used?

Exactly. Like you can see on the [SendAsync][1] documentation, it requires at least .NET 3.5. However Unity doesn't use .NET, it uses a custom Mono version which roughly equals .NET 3.5 but that doesn't mean that all classes / methods are available. If you check [Unity's MonoCompatibility page][2] you will see that the Socket class doesn't have a SendAsync method (search for `"Class: Socket ("` on that page). If you want to use async send / receive functionality you have to use the old [BeginSend][3] pattern. Here's an [example how to use it][4]

edit like i said in my comment i’ve actually missed the method on the MonoCompatibility page ^^

So it is available in Unity and you can use it in both 2.0 and 2.0 subset.

SendAsync came with .NET 3.5, so yes, this means you can not use it.

Unity has built in networking capabilities, use them if you can.