Skip to content

pengyunchou/SwiftKcp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SwiftKcp

KCP - A Fast and Reliable ARQ Protocol

install

  • carthage

github "aixinyunchou/SwiftKcp"

usage

  1. input swiftkcp

import SwiftKcp

  1. create kcp object:

let sender = Kcp(outputer:self)

  1. setup output delegate:

func kcp(kcp:Kcp,outputData:Data) -> Int{ //just send data to you udp or tcp target }

  1. call update in an interval:

sender.update(millisec:now)

  1. input lower layer data packet:

let reciveData = //read data from you tcp or udp socket sender.input(data:reciveData)

About

KCP - A Fast and Reliable ARQ Protocol

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published