Syntax
int hostByName(
    const char* aHostname, 
    IPAddress& aResult
);
ContentsIndex
PreviousUpNext
LGPRSClass::hostByName Method
LGPRSClass Class
Syntax
int hostByName(
    const char* aHostname, 
    IPAddress& aResult
);
Description

Resolves the given hostname to an IP address.

Parameters
Parameters 
Description 
const char* aHostname 
The URL name string to be resolved.
 
IPAddress& aResult 
The IP address structure to store the returned IP address.
 
Returns

1: The aIPAddrString is converted to an IP address successfully.  

error code: Failed.

File

LGPRS.h

Class