Re: [go-nuts] Help On Kqueue Server

2018-03-11 Thread Jesper Louis Andersen
On Sat, Mar 10, 2018 at 10:19 AM Anto Aravinth wrote: > Hello all, > > I'm learning golang and I wanted to try out this. Wanted to make a event > driven server using Kqueue sys call (I'm on mac). A simple echo server will > do. > If you want to learn this, I suggest you start off with something

[go-nuts] Help On Kqueue Server

2018-03-10 Thread Anto Aravinth
Hello all, I'm learning golang and I wanted to try out this. Wanted to make a event driven server using Kqueue sys call (I'm on mac). A simple echo server will do. I started with the below code: func main() { var lis net.Listener lis, err = net.Listen("tcp", "localhost:5000") if err != nil { fmt