Lines Matching refs:cookie
134 msg->cookie = 0;
145 static void nb_open(const char* filename, uint32_t cookie, uint32_t arg,
149 m.cookie = cookie;
155 static void nb_read(uint32_t cookie, uint32_t arg,
161 // Request to resend last message, verify that the cookie is unchanged
162 if (cookie != m.hdr.cookie) {
164 m.hdr.cookie = cookie;
179 m.hdr.cookie = cookie;
188 static void nb_write(const char* data, size_t len, uint32_t cookie, uint32_t arg,
193 // Request to repeat last write, verify that cookie is unchanged
194 if (cookie != m.cookie) {
202 m.cookie = cookie;
206 static void nb_close(uint32_t cookie,
210 m.cookie = cookie;
270 if ((last_cookie == msg->cookie) &&
274 ack.cookie = last_cookie;
363 last_cookie = msg->cookie;
369 ack.cookie = msg->cookie;
435 nb_open((char*)msg->data, msg->cookie, msg->arg, saddr, sport, dport);
438 nb_read(msg->cookie, msg->arg, saddr, sport, dport);
442 nb_write((char*)msg->data, len, msg->cookie, msg->arg, saddr, sport, dport);
445 nb_close(msg->cookie, saddr, sport, dport);