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

-- 
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.

Reply via email to