ContentsIndex
PreviousUpNext
UDP
Topics | Functions | Structs, Records, Enums | Types
Description

The UDP API is for sending and receiving data with the UDP protocol.

Introduction

Using UDP to send or receive data involves the following steps:

  1. Create a UDP connection by calling vm_udp_create(), this will register a callback function.
  2. Implement the callback function in order to handle UDP events.
  • Start writing data with vm_udp_send after receiving the write event VM_UDP_EVT_WRITE
  • Start reading data with vm_udp_receive after receiving the read event VM_UDP_EVENT_READ
  • When the connection breaks, a VM_UDP_EVENT_PIPE_BROKEN event is received.
  • VM_UDP_EVT_PIPE_CLOSED is received when the connection is closed.
  1. Call vm_udp_close() in order to close the connection.
Limitation

Currently the API only supports the asynchronous data transfer for UDP.

Group
Functions
Function 
Description 
This function closes the UDP socket
This function creates UDP socket
The Receive data from a source. 
This function sends data to the specified destination. 
Structs, Records, Enums
Struct, Record, Enum 
Description 
UDP events 
TCP results 
Types
Type 
Description 
UDP callback function type. 
Links
Created with a commercial version of Doc-O-Matic. In order to make this message disappear you need to register this software. If you have problems registering this software please contact us at support@toolsfactory.com.