Macro deVoid
Member
Greetings,
I have been working through understanding networking, and doing so I made a little script that shows me the connection information of the clients. As a network engineer by trade, I like to see this sort of thing. One thing I noticed was when a client had a long an ip address, where the string value was the longest possible length, when asking for the "ip" value from async_load, it didn't return the whole thing.
For example, an ip address of 192.168.200.123 has a string length of 15 --- 3 characters per octet plus 3 dots.
But when I capture the ip address during the Async Networking network_type_connect event, using GML code: show_debug_message(ds_map_find_value(async_load, "ip"))
...the output I see is: 192.168.200.12
It cuts off the last character =/
Bug?
I have been working through understanding networking, and doing so I made a little script that shows me the connection information of the clients. As a network engineer by trade, I like to see this sort of thing. One thing I noticed was when a client had a long an ip address, where the string value was the longest possible length, when asking for the "ip" value from async_load, it didn't return the whole thing.
For example, an ip address of 192.168.200.123 has a string length of 15 --- 3 characters per octet plus 3 dots.
But when I capture the ip address during the Async Networking network_type_connect event, using GML code: show_debug_message(ds_map_find_value(async_load, "ip"))
...the output I see is: 192.168.200.12
It cuts off the last character =/
Bug?