Skip to content

Latest commit

 

History

History
31 lines (24 loc) · 414 Bytes

README.md

File metadata and controls

31 lines (24 loc) · 414 Bytes

lua-kcp

Lua bindings for https://github.com/skywind3000/kcp

Install

use luarocks install kcp

Initial

  • create(conv, func)
  • getconv()

Methods

  • recv()
  • send(data)
  • update(current)
  • check(current)
  • input(data)
  • flush()
  • wndsize(sndwnd, rcvwnd)
  • nodelay(nodelay, interval, resend, nc)
  • peeksize()
  • setmtu(mtu)
  • waitsnd()
  • logmask()
  • sndcnt()
  • timeoutcnt()
  • fastsndcnt()
  • minrto(rto)