 
 extension SwiftyPaperTrail {
     public class func withUDP( to aHost : String, at aPort : UInt16 ) -> SwiftyPaperTrail {
-        let udpLayer = UDPTransport()
-        udpLayer.host = aHost
-        udpLayer.port = Int(aPort)
+        let udpLayer = UDPTransport(to: aHost, at: aPort)
         let logger = SwiftyPaperTrail.init(wireLayer: udpLayer)
         return logger
     }

    public var queue: DispatchQueue { get{ return defaultDispatchQueue } }

    private var udpSocket:GCDAsyncUdpSocket?
    internal var host:String?
    internal var port:Int?
    private var callbacks = TaggedCallbacks()

    public func disconnect() {
        udpSocket!.close()


    public func sendData( data : Data, callback : (() -> Void)? ) {
        if udpSocket == nil {
            udpSocket = GCDAsyncUdpSocket(delegate: self, delegateQueue: queue)
        }
        let tag = callbacks.registerCallback(optionalCallback: callback)
        udpSocket!.send(data, toHost: host, port: port, withTimeout: -1, tag: tag)
    }

    /*
