websSetHost GoAhead WebServer API GoAhead EMF

Synopsis

Define the host name for the web server.

Prototype

 #include "webs.h" 

 void websSetHost(char_t *host); 

Parameters

host Fully qualified host name.

Description

The websSetHost procedure defines the host name for the web server. The host parameter should be a fully qualified host name with domain specifiers. If you do not have a host name defined, use your IP address.

If you are using the GoAhead WebServer, you should call this procedure in your main.c. If you are using the GoAhead EMF, it will be called automatically for you.

Return Value

None

Example

 
myhost = getHostNameSomeHow(); 
websSetHost(myhost); 

Stability Classification

Stable.

See Also

websGetHost, websSetIpaddr