Re: [go-nuts] Re: SetKeepAlive TCP server

2016-07-26 Thread EdgarAlejandro Vintimilla
a TCP connection > and so the SetKeepAlive method becomes available. This will panic if the > conn variable does not actually contain a *net.TCPConn. > > On Tue, Jul 26, 2016 at 12:09 AM <dja...@gmail.com > wrote: > >> tryconn.(*TCPConn <https://g

[go-nuts] SetKeepAlive TCP server

2016-07-26 Thread EdgarAlejandro Vintimilla
when I use the conn.SetKeepAlive i get this error: reference to undefined field or method ‘SetKeepAlive’ https://golang.org/pkg/net/#TCPConn.SetKeepAlive why? but If I use conn.SetReadDeadline it works ok https://golang.org/pkg/net/#IPConn.SetReadDeadline -- You received this message

[go-nuts] Re: problems receiving data from a GPS

2016-07-18 Thread EdgarAlejandro Vintimilla
ence in the data that you receive? > > On Monday, 18 July 2016 05:42:36 UTC+3, EdgarAlejandro Vintimilla wrote: >> >> now I have this, but still not the correct results >> >> package main >> >> import ( >> "fmt" >> "

[go-nuts] Re: problems receiving data from a GPS

2016-07-17 Thread EdgarAlejandro Vintimilla
+= fmt.Sprintf("%x ", buf[i]) } // Send a response back to person contacting us. conn.Write([]byte( "ok" )) fmt.Println("cadena: ", cadena, reflect.TypeOf(cadena) ) fmt.Println( "\n" ) // Close the connection when you're done with it. conn.Close()

Re: [go-nuts] How can I convert ASCII to HEX?

2016-07-17 Thread EdgarAlejandro Vintimilla
thanks On Saturday, July 16, 2016 at 2:42:23 PM UTC-5, Michael Jones wrote: > > Lots of ways... > https://play.golang.org/p/D54ZRdLX_A > > On Sat, Jul 16, 2016 at 8:14 PM, EdgarAlejandro Vintimilla < > eav...@gmail.com > wrote: > >> I want to convert ascii

[go-nuts] Re: TCP Server

2016-07-14 Thread EdgarAlejandro Vintimilla
Thanks, basically is a GPS that sends data to the server. It's for a fit traker. What is the best way to put into producción this server? -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails

Re: [go-nuts] Re: Hi, someone may help me converting this python code to GO

2016-07-10 Thread EdgarAlejandro Vintimilla
you're right, thanks I still have to improve this code and keep learning GO On Sunday, July 10, 2016 at 11:38:33 PM UTC-5, kortschak wrote: > > It's worth returning the error from strconv.ParseUint in the general > case. > > On Sun, 2016-07-10 at 21:02 -0700, eav...@gmail.com wrote: > >