UDPSocket. Initialize (EventName As String, Port As Int, ReceiveBufferSize As Int)Initializes the socket and starts listening for packets.EventName - The name of the Sub that will handle the events. Port - Local port to listen on. Passing 0 will cause the OS to choose an available port automatically. ReceiveBufferSize - The size of the receiving packet. Packets larger than this value will be truncated. Pass 0 if you do not want to receive any packets. B4J Question how to determine a UDPsocket is still open? - MbedAndroid (first post)    Aug 7, 2023 thanks Erel, i will implement UDPSocket.Initialize2... Italian UDP_PacketArrived Dati ricevuti ? - Xfood    Mar 10, 2023 ) Activity.Title = "UDP" LETTURA="" UDPSocket1.Initialize("UDP", 9000, 1024) UDP_Send(UDPSocket1, "testo", 192.168.1.10, 9000) ' qui dovrei...("UTF8") Dim myIp As String =UDPSocket1.GetBroadcastAddress Packet.Initialize..." UDPSocket1.Initialize("UDP", 9000, 1024) UDP_Send(UDPSocket1, "testo... Process_Globals Dim UDPSocket1 As UDPSocket End Sub Sub Globals Private LETTURA As String End... B4J Question UDP reply to client - teddybear (first post)    Aug 26, 2023 't know is the following code is correct in AppStart:
UDPSocket1.Initialize("UDP", 5100... b4j log, but UDPSocket1.Initialize("UDP", 5100, 8000) in AppStart ?
B4j port is 5000?
Arduino is 5100?
if yes you shuold UDPSocket1.Initialize("UDP", 5000, 8000) in AppStart.... B4A Code Snippet Send and Save Data into SQLite on Another Device (using UDP) - aeric    Nov 27, 2023   (17 reactions) UDPSocket1 As UDPSocket Private txtHost As EditText End Sub Public Sub Initialize End Sub...) B4XPages.SetTitle(Me, Application.LabelName) UDPSocket1.Initialize("UDP", 5000... Packet As UDPPacket Packet.Initialize(data, txtHost.Text, 5000) UDPSocket1.Send(Packet...) B4XPages.SetTitle(Me, Application.LabelName) UDPSocket1.Initialize("UDP", 5000, 8000... Private Root As B4XView Private xui As XUI Private UDPSocket1 As UDPSocket Private... B4J Question App starts only once? - Erel (first post)    Aug 16, 2021   (2 reactions) You can use UDPSocket.Initialize2 and set ReuseAddress parameter to True. It will allow multiple processes to share the port.... B4i Question UDP sending error data in Release mode - OliverA (first post)    Apr 13, 2020
If UDPSocket1.IsInitialized Then UDPSocket1.Close Sleep(400) UDPSocket1.Initialize("UDP"...) a new UDPSocket, initialize it and then assign it to UDPSocket1.... B4i Question New post (UDPSocket.send returns "error sending data: 13") - Semen Matusovskiy (first post)    Aug 13, 2020 to make a delay after UDPSocket.Initialize, for example, Sleep (1)....1) Check firewall settings. Maybe a port is closed.
2) Packet.Initialize(data, "255.255.255... B4i Question UDP_PacketArrived fires only one time - Mike1970 (first post)    Apr 14, 2020
I also told you to explicitly set the port number.
i changed from
UDPSocket1.Initialize("UDP", 0, 8000)
to
UDPSocket1.Initialize("UDP",14000, 8000)
No differences... B4J Question Weird phenomenon with lists - Blueforcer    Apr 6, 2020 universe2Send As Boolean Dim bmp(256) As Short End Sub Sub start recordlist.Initialize If UDPSocket.IsInitialized Then UDPSocket.Close UDPSocket.Initialize("UDP", ACN_Port, 5000) t.Initialize("timer",5000) End Sub Sub UDP_PacketArrived (Packet As UDPPacket) t...) with only zeros. Sub Process_Globals Dim UDPSocket As UDPSocket Dim t As Timer Dim... B4i Question [SOLVED] UDP Socket - Error reading packet (recvfrom) - Mike1970    Apr 13, 2020 Hi everyone, i'm using this tutorial to send udp packet, everytime i send a packet in the log window appears many of this line: Error reading packet (recvfrom) even if i'm not receiving nothing Someone of you know what it could be? Thanks! I solved by putting the UDPSocket1.Initialize("UDP", 0, 2048) in the "Application_Start" sub instead of putting it in the function that sends the message.... Page: 1   2   3   4   5   6   7   |