parent
30af057969
commit
ff882a5e06
|
|
@ -43,7 +43,7 @@ class LoginSocket{
|
|||
|
||||
|
||||
connect() async {
|
||||
|
||||
socket?.close();
|
||||
socket = await Socket.connect(url, port, timeout: const Duration(seconds: 30));
|
||||
|
||||
socket?.listen((event) {
|
||||
|
|
|
|||
|
|
@ -30,12 +30,13 @@ class SyncSocket {
|
|||
RawDatagramSocket? socket;
|
||||
|
||||
// IC 0主机 1 从机
|
||||
int ic = 1;
|
||||
int ic = 0;
|
||||
|
||||
/// 从机ip
|
||||
List<String> childrenIp = [];
|
||||
|
||||
connect() async {
|
||||
socket?.close();
|
||||
socket = await RawDatagramSocket.bind(InternetAddress.anyIPv4, 0);
|
||||
|
||||
// 发送身份包
|
||||
|
|
|
|||
|
|
@ -152,11 +152,6 @@ class _ShowWebWidgetState extends State<ShowWebWidget> {
|
|||
if (widget.main == false) return input();
|
||||
return Row(
|
||||
children: [
|
||||
TextButton(
|
||||
onPressed: () {
|
||||
widget.controller.openDevTools();
|
||||
},
|
||||
child: const Text('开发者')),
|
||||
inputNumber(),
|
||||
Row(
|
||||
children: [
|
||||
|
|
|
|||
Loading…
Reference in New Issue