lan_mixed 0.0.1 copy "lan_mixed: ^0.0.1" to clipboard
lan_mixed: ^0.0.1 copied to clipboard

A lightweight UDP-based LAN communication plugin that supports multicast and unicast, allowing data to be sent and received within a local network.

LanMixed #

A lightweight UDP-based LAN communication plugin that supports multicast and unicast, allowing data to be sent and received within a local network.

Since UDP is a connectionless protocol, this plugin does not guarantee reliable data transmission.

Preview #

App preview

Platform Support #

Android iOS MacOS Web Linux Windows

Requirements #

  • Flutter >=3.3.0
  • Dart >=3.3.0 <4.0.0
  • iOS >=12.0
  • MacOS >=10.14
  • Android compileSDK 34
  • Java 17
  • Android Gradle Plugin >=8.3.0
  • Gradle wrapper >=8.4

Usage #

dependencies:
  ...
  lan_mixed: ^0.0.1
import 'package:lan_mixed/lan_mixed.dart';

Creating an Instance #

final lanMixed = LanMixed();

Starting the Service #

    lanMixed.startService(
      port: port,
      onReceiveMsg: (msg) {},
      onDevicesChange: (devices) {},
    );

Sending a Message #

lanMixed.sendMessage();

Stopping the Service #

lanMixed.close();

Refreshing Online Devices #

lanMixed.refreshDevices();

This project depends on other third-party plugins. For more details, refer to:

0
likes
150
pub points
0%
popularity

Publisher

verified publishersuntengfei.top

A lightweight UDP-based LAN communication plugin that supports multicast and unicast, allowing data to be sent and received within a local network.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

device_info_plus, flutter, network_info_plus

More

Packages that depend on lan_mixed