Lines Matching full:session
96 /* The methods below are per session. */
99 * Attempt to open a session from this path.
101 * @param[in] session - the session id.
104 * @return bool - was able to open the session.
106 virtual bool open(uint16_t session, uint16_t flags,
112 * @param[in] session - the session id.
117 virtual std::vector<uint8_t> read(uint16_t session, uint32_t offset,
123 * @param[in] session - the session id.
128 virtual bool write(uint16_t session, uint32_t offset,
134 * @param[in] session - the session id.
139 virtual bool writeMeta(uint16_t session, uint32_t offset,
145 * @param[in] session - the session id.
149 virtual bool commit(uint16_t session, const std::vector<uint8_t>& data) = 0;
152 * Attempt to close your session.
154 * @param[in] session - the session id.
155 * @return bool - was able to close session.
157 virtual bool close(uint16_t session) = 0;
160 * Attempt to return metadata for the session's view of the blob.
162 * @param[in] session - the session id.
166 virtual bool stat(uint16_t session, BlobMeta* meta) = 0;
169 * Attempt to expire a session. This is called when a session has been
172 * @param[in] session - the session id.
173 * @return bool - whether the session was able to be closed.
175 virtual bool expire(uint16_t session) = 0;