You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
voidFGOutputSocket::SetOutputName(const string& fname)
{
// tokenize the output namesize_t dot_pos = fname.find(':', 0);
size_t slash_pos = fname.find('/', 0);
string name = fname.substr(0, dot_pos);
string proto = "TCP";
if(dot_pos + 1 < slash_pos)
proto = fname.substr(dot_pos + 1, slash_pos - dot_pos - 1);//bug not right dot_pos
string port = "1138";
if(slash_pos < string::npos)
port = fname.substr(slash_pos + 1, string::npos); //bug not right slash_pos // set the model name
Name = name + ":" + port + "/" + proto;
// set the socket params
SockName = name;
SockPort = atoi(port.c_str());
if (to_upper(proto) == "UDP")
SockProtocol = FGfdmSocket::ptUDP;
else// Default to TCP
SockProtocol = FGfdmSocket::ptTCP;
}
param name new name in the form "hostname:port/proto" is not right
but "hostname:proto/port" is right?
The text was updated successfully, but these errors were encountered:
Describe the issue
FGOutputSocket.cpp
param name new name in the form "hostname:port/proto" is not right
but "hostname:proto/port" is right?
The text was updated successfully, but these errors were encountered: