[Gambas-bugtracker] Bug #1874: not able to send UDP datagram on local host
bugtracker at gambaswiki.org
bugtracker at gambaswiki.org
Tue Sep 1 19:16:59 CEST 2020
http://gambaswiki.org/bugtracker/edit?object=BUG.1874&from=L21haW4-
Paolo FLORA reported a new bug.
Summary
-------
not able to send UDP datagram on local host
Type : Request
Priority : Medium
Gambas version : 3.15
Product : Networking components
Description
-----------
I put an UDPSocket component on a form and with a button I am trying to send a message in localhost to port 50010 but nothing is coming out.
I need it for cross communication between different applications on localhost.
Documentation is not clear and no examples found.
Code:
Public Sub Button_1_Click()
Dim sBuf As String
sBuf = "Test-1"
' if I omit Begin I receive an error from IDE
UdpCmd.Begin
Write #UdpCmd, sBuf, Len(sBuf)
End
Properties:
Path empty
Port 50010
TargetHost empty
TargetPort 0
Broadcast False
What is the right way to do this ?
Thanks
System information
------------------
[System]
Gambas=3.15.90 6612f76 (master)
OperatingSystem=Linux
Kernel=4.15.0-20-generic
Architecture=x86
Distribution=Linux Mint 19 Tara
Desktop=XFCE
Theme=gtk
Language=it_IT.UTF-8
Memory=987M
[Libraries]
Cairo=libcairo.so.2.11510.0
Curl=libcurl.so.4.5.0
DBus=libdbus-1.so.3.19.4
GDK2=libgdk-x11-2.0.so.0.2400.32
GDK3=libgdk-3.so.0.2200.30
GStreamer=libgstreamer-1.0.so.0.1401.0
GTK+2=libgtk-x11-2.0.so.0.2400.32
GTK+3=libgtk-3.so.0.2200.30
OpenGL=libGL.so.1.0.0
Poppler=libpoppler.so.73.0.0
QT4=libQtCore.so.4.8.7
QT5=libQt5Core.so.5.9.5
SDL=libSDL-1.2.so.0.11.4
SQLite=libsqlite3.so.0.8.6
More information about the Bugtracker
mailing list