/
sethostname TCP UDP
sethostname TCP UDP
Sets the host name with the given value in the character array.
Files
net_bsd.h/net_bsd.c
Prototype
int sethostname (const char *host_name, _size_t name_len);
Arguments
host_name
Character array with the desired host name.
name_len
Specifies the number of bytes in the given host name string.
Returned Value
0, if no error.
-1, otherwise.
Related content
gethostname TCP UDP
gethostname TCP UDP
More like this
getsockname TCP UDP
getsockname TCP UDP
More like this
getnameinfo TCP UDP
getnameinfo TCP UDP
More like this
getaddrinfo TCP UDP
getaddrinfo TCP UDP
More like this
bind TCP UDP
bind TCP UDP
More like this
getpeername TCP UDP
getpeername TCP UDP
More like this