/
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.
, multiple selections available,
Related content
getsockname TCP UDP
getsockname TCP UDP
More like this
gethostname TCP UDP
gethostname TCP UDP
More like this
getnameinfo TCP UDP
getnameinfo TCP UDP
More like this
getpeername TCP UDP
getpeername TCP UDP
More like this
socket TCP UDP
socket TCP UDP
More like this
connect TCP UDP
connect TCP UDP
More like this