public void CreateCookie(H2NBinaryWriter writer, HelloAttempt attempt, byte[] tag, string queryUrl) { var cookie = attempt.Cookie; if (cookie == null) { cookie = new Cookie(this, tag, queryUrl); _cookies[cookie.Value.BytesToString()] = cookie; attempt.Cookie = cookie; } writer.Write(CookieComputing.COOKIE_SIZE); writer.Write(cookie.Value); }
public void CreateCookie(H2NBinaryWriter writer, HelloAttempt attempt, byte[] tag, string queryUrl) { var cookie = attempt.Cookie; if (cookie == null) { cookie = new Cookie(this,tag, queryUrl); _cookies[cookie.Value.BytesToString()] = cookie; attempt.Cookie = cookie; } writer.Write(CookieComputing.COOKIE_SIZE); writer.Write(cookie.Value); }