Skip to content

Latest commit

 

History

History
19 lines (17 loc) · 570 Bytes

README.md

File metadata and controls

19 lines (17 loc) · 570 Bytes

UDPServer

UDPServer it's a asynchronous udp server & client
(c) 2014 Cergoo
under terms of ISC license

srv := UDPServerNew(...) - create and run server   
pkg = <-srv.ChRead       - get package from client
srv.ChWrite<-pkg         - send package to client
srv = nil                - stop and destroy server
client := Connect(...)   - create and run client
pkg = <-client.ChRead    - get package from server
client.ChWrite<-pkg      - send package to server
client = nil             - stop and destroy client