Unified · Split
| @@ -3,16 +3,13 @@ package main · 2 unmodified lines | |||
| 3 | import ( | 3 | import ( |
| 4 | "code.google.com/p/go.net/websocket" | 4 | "code.google.com/p/go.net/websocket" |
| 5 | "os/exec" | 5 | "os/exec" |
| 6 | /* "encoding/base64" | 6 | "io" |
| 7 | "flag" | 7 | "net/http" |
| 8 | */ "io" | ||
| 9 | /* "log" | ||
| 10 | "net" | ||
| 11 | */ "net/http" | ||
| 12 | ) | 8 | ) |
| 13 | 9 | ||
| 14 | func srv9p(ws *websocket.Conn){ | 10 | func srv9p(ws *websocket.Conn){ |
| 15 | defer ws.Close(); | 11 | defer ws.Close(); |
| 12 | ws.PayloadType = websocket.BinaryFrame; | ||
| 16 | 13 | ||
| 17 | srvcat := exec.Command("srvcat", "webdraw"); | 14 | srvcat := exec.Command("srvcat", "webdraw"); |
| 18 | stdin, err := srvcat.StdinPipe(); | 15 | stdin, err := srvcat.StdinPipe(); |