New topic: udp socket port
<http://forums.realsoftware.com/viewtopic.php?t=34377> Page 1 of 1 [ 1 post ] Previous topic | Next topic Author Message pbart Post subject: udp socket portPosted: Wed Jun 23, 2010 11:59 pm Joined: Sat Oct 10, 2009 6:40 am Posts: 132 Hi I have been experimenting with the SNMPsocket classes from PBSW. The main socket is is a subclassed UDP Socket (I believe), and I just found a small bug. when sending a message to a recipient whose IP ends in 161 this was changing the recipient address. i.e When I try to send the following (with wireshark monitoring my NIC) Write("192.168.1.161:161","somemessage") The message was trying to send to 192.168.0.1. I don't know if this is a RB socketCore issue or an issue with the SNMPsocket class, but after changing my code to: me.port = 161 Write("192.168.1.161","somemessage") The message went to the correct recipient. My questions are: Has anyone else had a problem like this with any SocketCore classes, and will my suggested fix cause me any problems. _________________ Regards Paul Windows 7 32bit RB 2010.2 Top Display posts from previous: All posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost timeSubject AscendingDescending Page 1 of 1 [ 1 post ] -- Over 1500 classes with 29000 functions in one REALbasic plug-in collection. The Monkeybread Software Realbasic Plugin v9.3. http://www.monkeybreadsoftware.de/realbasic/plugins.shtml [email protected]
