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

  • 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 68
MVI-ADMNET 'C' Programmable Application Development Function Library - ADMNET API
'C' Programmable Application Development Module with Ethernet Developer's Guide
ProSoft Technology, Inc. Page 69 of 122
February 20, 2013
ADM_close_sk
Syntax
int ADM_close_sk(char *skName);
Parameters
skName
Name of the socket that has been initialized and used
to send data.
Description
This function is used by an application to close socket opened by ADM_open_sk.
IMPORTANT: After a socket has been opened, this function should always be called to close
socket, but not release socket.
Return Value
SK_SUCCESS
API was successfully released all the sockets.
SK_NOT_FOUND
API could not find an initialized socket with the name
passed to the function.
Example
char sockName1[ ] = "SendSocket";
ADM_close_sk(sockName1);
printf ("Connection Closed!\n");
See Also
ADM_init_socket (page 65)
Zobrazit stránku 68
1 2 ... 64 65 66 67 68 69 70 71 72 73 74 ... 121 122

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

Žádné komentáře