| 1149 | } |
| 1150 | |
| 1151 | TSTRING cTWUtil::GetIPAddress() |
| 1152 | { |
| 1153 | uint32 ipaddress; |
| 1154 | if (iFSServices::GetInstance()->GetIPAddress(ipaddress) == false) |
| 1155 | return TSS_GetString(cTW, tw::STR_IP_UNKNOWN); |
| 1156 | |
| 1157 | // convert to host byte-order |
| 1158 | ipaddress = tw_ntohl(ipaddress); |
| 1159 | |
| 1160 | TOSTRINGSTREAM ret; |
| 1161 | ret << (int)(ipaddress >> 24) << _T(".") << (int)((ipaddress >> 16) & 0xff) << _T(".") |
| 1162 | << (int)((ipaddress >> 8) & 0xff) << _T(".") << (int)(ipaddress & 0xff); |
| 1163 | |
| 1164 | return ret.str(); |
| 1165 | } |
| 1166 | |
| 1167 | TSTRING cTWUtil::GetCurrentUser() |
| 1168 | { |
no outgoing calls