google-code-export / gambas

Automatically exported from code.google.com/p/gambas
1 stars 0 forks source link

Gambas 3.3.3: Socket.RemoteHost returns an empty string #362

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
1) Even in the gb.net sample code Socket.RemoteHost returns an empty string
   (in the Server Socket example), when the Server Socket connection arrives
   we know the other peer IP address because is a parameter when the event 
   is fired.
   But, when the ServerSocket accepts the connection, it returns a 
   Socket Object. And "here is the problem" 
   Socket.RemoteHost returns an empty string

2) [System]
OperatingSystem=Linux
Kernel=3.2.0-33-generic
Architecture=x86_64
Memory=8088988 kB
DistributionVendor=Ubuntu
DistributionRelease="Ubuntu 12.04 LTS"
Desktop=Gnome

[Gambas 3]
Version=3.3.3
Path=/usr/bin/gbx3

[Libraries]
Qt4=libQtCore.so.4.8.1
GTK+=libgtk-x11-2.0.so.0.2400.10

3) Test the ServerSocket project in the Samples folder provided with Gambas

4) No databases

5) Start the project, select any port and make it listen.
   open a telnet connection to that port
   (In my system) i get the following
   Connection request from : 127.0.0.1
   Connection from :0 accepted (local port 0)
   -- Client working --
   the client connects the 127.0.0.1 comes from de event parameter, but in
   the second line, [Connection from :0 accepted (local port 0)] the info
   comes from the Socket.RemoteHost:Socket.RemotePort info.

6) it would be great to solve this bug. but if you are busy with bigger 
priority bugs
   i'll still be running my programs on Gambas2.
   thanx for your time and your efforts on doing our life comfortable whith 
   GamBas!!!

Original issue reported on code.google.com by aristide...@gmail.com on 5 Dec 2012 at 8:20

GoogleCodeExporter commented 9 years ago
Excuse my poor English!!!

Original comment by aristide...@gmail.com on 5 Dec 2012 at 8:23

GoogleCodeExporter commented 9 years ago

Original comment by benoit.m...@gmail.com on 7 Dec 2012 at 2:27

GoogleCodeExporter commented 9 years ago
Fixed in revision #5416. The bug will be backported to Gambas 3.3.5.

Original comment by benoit.m...@gmail.com on 7 Dec 2012 at 2:28

GoogleCodeExporter commented 9 years ago
Thank you very much! I'll keep waiting!

Original comment by aristide...@gmail.com on 11 Dec 2012 at 3:31