Cable Electronics DVP14 Specifikace Strana 264

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 332
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 263
Appendix 5 Ethernet App5-39
Receive Wait from V7
int HKEtn_Recvfrom(BYTE *dp,short *lpCnt)
This function is retained internally until data is received from the V7 series.
The function returns a response and ends only when a command is received.
The user should interpret the received data and create the next action.
This function must be executed within the thread.
Parameters
*dp Top pointer of receive buffer
Allocate 5000 bytes.
*lpCnt Returns the number of bytes received.
Return values
Success TRUE
Failure FALSE
Error details Get using HKEtn_GetLastError ().
Cancel Receive Wait Function
void HKEtn_Cancel(void)
Cancels the function in the receive wait status, such as Recvfrom().
Request Connection Information
int HKEtn_GetInf(struct inf *lpinf,char *lpAddr)
Parameters
*Ipinf All “0”
*lpAddr IP address shown as a string of characters separated by dots
Example: “192.168.XXX.XXX
Return values
Success TRUE
Failure FALSE
Error details Get using HKEtn_GetLastError ().
Close Processing
int HKEtn_Close()
Execute this function when ending HKEtn10.dll.
Get Source’s IP Address
int HKEtn_GetSinAddr(char *lpAddr)
Execute this function after the recvfrom() function or receiving the data.
Zobrazit stránku 263
1 2 ... 259 260 261 262 263 264 265 266 267 268 269 ... 331 332

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

Žádné komentáře