Search code examples
c#tcpxamarinportable-class-library

Is there any way to create a socket in Portable Class Library?


I have been trying to create a socket in a portable class library. Tried a solution from xamarin forum too, but no luck. Is there any way to create a tcp socket inside a portable class library?


Solution

  • short answer: you can't.

    TCPI/IP sockets or UDP sockets (i.e.) are just communication protocols in the Internet that uses the transport layer and lot of anothers resources of you host machine (More info: wikipedia/tpc)