imap/src/osdep/nt/env_nt.c
/* Return my local host name
 * Returns: my local host name
 */
Return my local host name
Returns: my local host name
Return my local host name Returns : my local host name
char *mylocalhost (void)
{
  if (!myLocalHost) {
    char tmp[MAILTMPLEN];
    if (!wsa_initted++) {	
      WSADATA wsock;
      if (WSAStartup (WINSOCK_VERSION,&wsock))
	wsa_initted = 0;
    }
    if (wsa_initted && gethostname (tmp,MAILTMPLEN-1) != SOCKET_ERROR)
      myLocalHost = tcp_canonical (tmp);
  }
  return myLocalHost ? myLocalHost : "random-pc";
}
char * mylocalhost ( void ) { if ( ! myLocalHost ) { char tmp [ MAILTMPLEN ] ; if ( ! wsa_initted ++ ) { WSADATA wsock ; if ( WSAStartup ( WINSOCK_VERSION , & wsock ) ) wsa_initted = 0 ; } if ( wsa_initted && gethostname ( tmp , MAILTMPLEN - 1 ) != SOCKET_ERROR ) myLocalHost = tcp_canonical ( tmp ) ; } return myLocalHost ? myLocalHost : " " ; }
Return my local host name
 Returns: my local host name
Return my local host name Returns : my local host name
/* init Windows Sockets */