jchristn / simpleudp Goto Github PK
View Code? Open in Web Editor NEWSimpleUdp is a super simple way of building UDP clients and servers in C#.
License: MIT License
SimpleUdp is a super simple way of building UDP clients and servers in C#.
License: MIT License
Hello Joel,
sorry bothering but I need an idea.
I use SimpleUdp to comm from Android phone into my home network. The app is written with VS-xamarin-.net-core. At least the tests with the android simulator succeed, I receive the UDP telegram on my windows host. But with a installed APK on my phone nothing comes through. The google playstore app "udp sender/receiver" on the phone works well, and if I have open my app too, the port seems to be in use by my app because the playstore app cannot send any more.
Strange! Do you have any idea what might be wrong ...
Greetings from Germany
Uwe
Dear,
When running this:
l_udp = new UdpEndpoint(Computer.ThisComputer_IP(), l_DevicePort.IpPort);
where =172.30.0.150 and the device port is 4446, so pretty straightforward Ip and port
We get the error:
Could not load file or assembly 'Caching, Version=1.3.4.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.
However, we can't seem to find where exactly in the code the file error comes from.
Looking forward to your reply!
Unhandled exception. System.Net.Sockets.SocketException (98): Address already in use
at System.Net.Sockets.Socket.UpdateStatusAfterSocketErrorAndThrowException(SocketError error, String callerName)
at System.Net.Sockets.Socket.DoBind(EndPoint endPointSnapshot, SocketAddress socketAddress)
at System.Net.Sockets.Socket.Bind(EndPoint localEP)
at System.Net.Sockets.UdpClient..ctor(Int32 port, AddressFamily family)
at System.Net.Sockets.UdpClient..ctor(Int32 port)
at SimpleUdp.UdpEndpoint..ctor(String ip, Int32 port)
at pidemo.Program.Main(String[] args) in E:\Projects\netcoreapi\pidemo\pidemo\Program.cs:line 102
It doesn't seem to work in the arm environment!
For simple sending, why do we need to provide IP and port in constructor and also in method?
https://github.com/jchristn/SimpleUdp/blob/master/SimpleUdp/UdpEndpoint.cs#L161
It would be nice if IP and port parameters in Send method are optional. If we don't specify IP and port in Send method, use the one that we provided in constructor.
How to stop the UdpEndpoint
I need to stop UDP Endpoint when click a button. How to add code to implement it?
Does this library support setting the TTL on each packet?
Kind Regards
i got an error showed that the x.x.x.255:port is not valid , but my udp data is broadcast to the whole network
thanks
if send fast,the old data maybe overwritten with new one
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.