You should have mentioned itYou gave us what I was looking for since January
I am afraid that I must have missed (or ignored at the time) your original post in Questions and Help but I do occasionally look back at the wishlist to see if what I am playing with might be useful to somebody.Maybe I should have put it on the WishList, but I did on Questions and Help needed
obj1.New1(False)
....
obj1.FromLibrary ("udpclient", "client", B4PObject(2))
obj1.SetProperty("EnableBroadcast", "True")
Because I only posted an updated dll and I guess that you still have the old source file in your Basic4ppc Llibrary folder that the optimising compiler is trying to use. Delete that source file and you will be able to optimise compile but will need to place the temporary dll with the exe in the device folder to run it. Now I know it works I'll think about adding a way to to do a DNS lookup and detect whether an IPv4 or IPv6 address is returned and maybe a couple of other tweaks. When I post it as the next version it will of course include updated source and help file.I get an error that the "NetUDPclient.UDPclient does not contain a definition for StartIPv6".
udpclient.Start(tbHost.Text, tbTxPort.Text, tbRxPort.Text)
obj1.FromLibrary ("[COLOR="Red"]Main[/COLOR].udpclient", "client", B4PObject(2))
obj1.SetProperty("EnableBroadcast", "True")
The library should work with earlier versions of Basic4ppc as long as .NET 2.0 is available. It is the demo sources that are 6.80 specific as their format changed.BTW, UDPClient 1.1 only works in basic4ppc 6.8 version.
It's not presently possible but I have knocked up a UDPserver object that seems to work OK so I'll polish it up a bit, do the help and post a new version of the library in a day or so.an UDP Server which can receive from any address. Is it possible with this library?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?