|
|
string(ip) + string(":") + string(port), I get `127.0.0.1:0`, which is of cause wrong.string(ip) +, I get `:50001`, so this definitely means that the two variables are both valid. |
|
string(ip) + string(":") + string(port)&p.GetConstStrPtr()[6] refers to a vector and is retrieving the data from the sixth place in the array. |
|
GetVariable is called as the final 'port' value is assigned to a new variable type which has no connection whatsoever to the GetVariable function.| &p.GetConstStrPtr()[6] refers to a vector and is retrieving the data from the sixth place in the array. |
| I printed the result out and I'm getting a `vector<t> too long` error, which doesn't make sense since I'm trying to pull data out of the array. |
| I printed `portstr` out, and the result was the `50001` I'm looking for, but however the final output is still 0 when added to the ip. |