Prosoft-technology MVI69-ADMNET Uživatelský manuál Strana 95

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 122
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 94
MVI-ADMNET 'C' Programmable WATTCP API Functions
'C' Programmable Application Development Module with Ethernet Developer's Guide
ProSoft Technology, Inc. Page 95 of 122
February 20, 2013
gethostid
Syntax
char *gethostid ( void );
Parameters
None
Description
This function returns value of the IP address in host format.
Return Value
String IP Address.
Example
sock_type *socket;
char *p;
. . .
if(p = gethostid(socket) != NULL)
{
printf("My IP: %s\n", p);
}
Zobrazit stránku 94
1 2 ... 90 91 92 93 94 95 96 97 98 99 100 ... 121 122

Komentáře k této Příručce

Žádné komentáře