On Saturday, December 8, 2018 at 6:47:56 AM UTC+1, golang user wrote: > > I am bringing up TCP listener in windows OS, not sure how to recieve data > from listener and send to command line > > > IN UNIX WE DO AS FOLLOWS > > service := ":1200" > tcpAddr, err := net.ResolveTCPAddr("tcp", service) > listener, err := net.ListenTCP("tcp",tcpAddr) > if err != nil { > return "", err > } > > defer listener.Close() > * file, err := listener.File() --> unix supports file descriptor / how > about in windows ??* > if err != nil { > return "", err > } > > cmd := exec.Command( execname) > > cmd.ExtraFiles = []*os.File{*file*} --> in unix it support / how about > in windows to add data ??? > > cmd.Start() > > > > kindly need help to bring up in windows to listen on tcp ipaddress and > send to executable file >
https://docs.microsoft.com/en-us/windows/desktop/sysinfo/handle-inheritance and, probably: https://msdn.microsoft.com/en-us/library/ms724251(v=VS.85).aspx But I suspect that the latter is not possible with Go. Manlio -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.