This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import UIKit | |
import Network | |
class Connect: NSObject { | |
private var talking: NWConnection? | |
private var listening: NWListener? | |
func listenUDP( port: Int) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import UIKit | |
import Combine | |
import Network | |
final class BonjourBrowser: NSObject, ObservableObject, Identifiable { | |
struct objectOf:Hashable { | |
var id:UUID? = UUID() | |
var device:String = "" | |
var IsIndexed:Int = 0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import UIKit | |
import Network | |
let serviceTCPName = "_domino._tcp" | |
class TCPNetwork: NSObject { | |
private var talking: NWConnection? | |
private var listening: NWListener? | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import UIKit | |
import Network | |
let serviceUDPName = "_domino._udp" | |
class UDPNetwork: NSObject, NetServiceDelegate, NetServiceBrowserDelegate { | |
private var talking: NWConnection? | |
private var listening: NWListener? | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
struct TalkView: View { | |
@ObservedObject var mobile = BonjourBrowser() | |
@State var name: String = "" | |
@State var telegram:String = "" | |
@State var udpCode = UDPNetwork() | |
@State var tcpCode = TCPNetwork() | |
@State var message:String = "" | |
@State var startSvr = false | |
@State var searchSvr = false |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import SwiftUI | |
import Combine | |
enum MyAppPage { | |
case Menu | |
case SecondPage | |
} | |
struct ListView: View { | |
@Binding var name:String |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import UIKit | |
import Network | |
let serviceUDPName = "_domino._udp" | |
class UDPNetwork: NSObject, NetServiceDelegate, NetServiceBrowserDelegate { | |
private var talking: NWConnection? | |
private var listening: NWListener? | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// ContentView.swift | |
// DominosII | |
// | |
// Created by localadmin on 13.04.20. | |
// Copyright © 2020 Mark Lucking. All rights reserved. | |
// | |
import SwiftUI | |
import Combine |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// ContentView.swift | |
// dominos | |
// | |
// Created by localadmin on 07.04.20. | |
// Copyright © 2020 Mark Lucking. All rights reserved. | |
// | |
import SwiftUI | |
import Combine |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// ContentView.swift | |
// dominos | |
// | |
// Created by localadmin on 07.04.20. | |
// Copyright © 2020 Mark Lucking. All rights reserved. | |
// | |
import SwiftUI | |
import Combine |