search for: net_transmit

Displaying 3 results from an estimated 3 matches for "net_transmit".

Did you mean: get_translit
2017 Sep 08
5
EOF from net_disconnect(fd)
...ere a way to monitor the stream through the socket so I can see if the plugin is indeed sending the EOF? Knowing that lets me know if I need to chase down the issue in the Go daemon code. I?m no pro with C but I tried. The snippet from the plugin follows: alarm(1);?????????????? ??? { if (net_transmit(fd, str_data(req), str_len(req)) < 0) { ? i_error("write(%s) failed: %m", socket_path); ? ret = -1; } else { ? char res[1024]; ? ret = net_receive(fd, res, sizeof(res)-1); ? if (ret < 0) { ??????????????? i_error("read(%s) failed: %m", socket_path); ? } else { ???...
2017 Sep 08
1
EOF from net_disconnect(fd)
...ode. Thanks, Steffan Cline steffan at hldns.com 602-793-0014 > On Sep 7, 2017, at 11:43 PM, Aki Tuomi <aki.tuomi at dovecot.fi> wrote: > > Hi! > > Nice to hear you are developing this, I'll add it to our wiki if it's > not there. > > Please don't use net_transmit, it's going away. You should use ostream > and istream instead. > > Aki > > >> On 08.09.2017 09:29, Steffan Cline wrote: >> I?m working on an OS project from github. There are two parts: >> >> Dovecot plugin - https://github.com/st3fan/dovecot-xaps-plu...
2017 Sep 08
0
EOF from net_disconnect(fd)
Hi! Nice to hear you are developing this, I'll add it to our wiki if it's not there. Please don't use net_transmit, it's going away. You should use ostream and istream instead. Aki On 08.09.2017 09:29, Steffan Cline wrote: > I?m working on an OS project from github. There are two parts: > > Dovecot plugin - https://github.com/st3fan/dovecot-xaps-plugin > > Daemon written in Go - https://gi...