| | |
| | | } |
| | | |
| | | func (r *Reciever) runShm(ctx context.Context) { |
| | | c, err := deliver.NewClientWithError(deliver.Shm, r.ipcURL) |
| | | c, err := deliver.NewServerWithError(deliver.Shm, r.ipcURL) |
| | | for { |
| | | if err == nil { |
| | | break |
| | | } |
| | | time.Sleep(1 * time.Second) |
| | | c, err = deliver.NewClientWithError(deliver.Shm, r.ipcURL) |
| | | c, err = deliver.NewServerWithError(deliver.Shm, r.ipcURL) |
| | | r.fnLogger("CLIENT CREATE FAILED : ", err) |
| | | } |
| | | r.run(ctx, c) |
| | |
| | | } |
| | | |
| | | func (s *Sender) runShm(ctx context.Context) { |
| | | c, err := deliver.NewClientWithError(deliver.Shm, s.ipcURL) |
| | | c, err := deliver.NewServerWithError(deliver.Shm, s.ipcURL) |
| | | for { |
| | | if err == nil { |
| | | break |
| | | } |
| | | time.Sleep(1 * time.Second) |
| | | c, err = deliver.NewClientWithError(deliver.Shm, s.ipcURL) |
| | | c, err = deliver.NewServerWithError(deliver.Shm, s.ipcURL) |
| | | s.fnLogger("CLIENT CREATE FAILED : ", err) |
| | | } |
| | | s.run(ctx, c) |
| | |
| | | postPush = `_1` |
| | | ) |
| | | |
| | | ipcSnd := url + postPush |
| | | ipcRcv := url + postPull |
| | | ipcSnd := s.ipc + postPush |
| | | ipcRcv := s.ipc + postPull |
| | | |
| | | sndURL := sdkhelper.GetIpcAddress(true, ipcSnd) |
| | | rcvURL := sdkhelper.GetIpcAddress(true, ipcRcv) |