UDP Communications: send and receive

The UDP Sender and Receiver User Actors offer robust, flexible, and efficient tools for transmitting and receiving messages over a network. These scripts are designed to support various encodings, handle binary and text data seamlessly, and dynamically manage configurations for IPs, ports, and message formatting. With built-in validation, error handling, and debugging features, they ensure reliable and accurate communication, making them ideal for both simple and advanced networking applications in Isadora. Internally they are powered by Python via the Pythoner actor (new to Isadora 4). Using the standard Python library, no additional modules need to be installed for usage.

 

Features of the UDP Sender:

  • Dynamic Configuration: Supports real-time updates to IP address, port, source port, encoding, and message content.
  • Flexible Encoding: Allows sending messages in various formats, including utf-8, ascii, and raw binary.
  • Source Port Binding: Optional source port configuration ensures compatibility with specific network requirements.
  • Comprehensive Validation: Validates inputs like IP addresses, destination ports, and source ports for robustness.
  • Efficient Socket Management: Reuses existing sockets where possible to optimize performance.

 

Features of the UDP Receiver:

  • Encoding Flexibility: Supports utf-8, ascii, and raw binary decoding, enabling handling of diverse message formats.
  • Custom Message Formatting: Allows customization of message output with user-defined delimiters.
  • Error Handling: Gracefully manages invalid inputs, decoding errors, and socket interruptions.
  • Thread-Safe Operations: Ensures stability during concurrent operations with thread-safe mechanisms.
  • Dynamic Parameter Updates: Automatically restarts the server when configuration changes, such as IP or port, are detected.
For Isadora
4.x
Actor version(s)
1
Uploaded
January 13 2025
Size
10.94 KB
Downloads
49
Ratings
-
Download
Comments
Log in to Reply