| 174 | } |
| 175 | |
| 176 | bool SocketAddress::setIntern(Exception& ex,const char* hostAndPort,bool resolveHost) { |
| 177 | ASSERT_RETURN(hostAndPort,false); |
| 178 | |
| 179 | const char* colon(strrchr(hostAndPort,':')); |
| 180 | if (!colon) { |
| 181 | ex.set(Exception::NETPORT, "Missing port number in ", hostAndPort); |
| 182 | return false; |
| 183 | } |
| 184 | (char&)*colon = 0; |
| 185 | bool result(setIntern(ex,hostAndPort, resolveService(ex,colon+1),resolveHost)); |
| 186 | (char&)*colon = ':'; |
| 187 | return result; |
| 188 | } |
| 189 | |
| 190 | bool SocketAddress::setIntern(Exception& ex,const char* host, UInt16 port,bool resolveHost) { |
| 191 | IPAddress ip; |
nothing calls this directly
no test coverage detected