sockets-for-pcl | platform socket API for Xamarin iOS | Runtime Evironment library
kandi X-RAY | sockets-for-pcl Summary
kandi X-RAY | sockets-for-pcl Summary
Cross-platform socket API for Xamarin iOS/Android/Forms, Xamarin.Mac/MonoMac, Windows Phone 8/8.1, Windows Store and Windows Desktop.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of sockets-for-pcl
sockets-for-pcl Key Features
sockets-for-pcl Examples and Code Snippets
Community Discussions
Trending Discussions on sockets-for-pcl
QUESTION
I'm using this library here: sockets-for-pcl.
Why do you use this library?
To make communication with xamarin android and WPF desktop. (bidirectional / duplex communication).
The following code works great:
Server:
...ANSWER
Answered 2018-Mar-13 at 14:49Look at this test case, and look at the method TcpSocketClient_ShouldSendReceiveDataSimultaneously
:
This method demonstrates bidirectional communication. It is a little confusing because it is creating 2 pairs of connections, a listener for each, so it is acting as both a client and server. You could easily split this out into separate client and server code.
In truth after the connection is established, client and server are essentially identical. Either can be the listener. In push notification scenarios for example, the client is the listener rather than server.
They setup the server socket first, because the server has to be waiting for a connection in order for a client connection attempt to succeed:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install sockets-for-pcl
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page