| | |
| | | "fmt" |
| | | // "golang.org/x/sys/unix" |
| | | |
| | | "github.com/gogo/protobuf/proto" |
| | | "taskpubsub/tasktag" |
| | | "taskpubsub/util" |
| | | |
| | | "github.com/gogo/protobuf/proto" |
| | | |
| | | "taskpubsub/logger" |
| | | |
| | | "basic.com/pubsub/protomsg.git" |
| | | "basic.com/valib/deliver.git" |
| | | "taskpubsub/logger" |
| | | ) |
| | | |
| | | const ( |
| | |
| | | |
| | | url := fmt.Sprintf("ipc:///tmp/%s%s.ipc", id, postPush) |
| | | m := deliver.PushPull |
| | | if shm{ |
| | | if shm { |
| | | m = deliver.Shm |
| | | url = id + postPush |
| | | // unix.Unlink("/dev/shm/" + url) |
| | | } |
| | | |
| | | fmt.Println("SDK URL: ", url) |
| | | |
| | | socket, err := util.NewSocketListen(int(m), url, shm) |
| | | if err != nil { |
| | | delete(SdkMap, id) |
| | |
| | | |
| | | url := fmt.Sprintf("ipc:///tmp/%s%s.ipc", id, postPull) |
| | | m := deliver.PushPull |
| | | if shm{ |
| | | if shm { |
| | | m = deliver.Shm |
| | | url = id + postPull |
| | | |
| | | // unix.Unlink("/dev/shm/" + url) |
| | | } |
| | | |
| | | socket, err := util.NewSocketListen(int(m), url, shm) |