h2load: Rename Client::on_connect as connection_made

This commit is contained in:
Tatsuhiro Tsujikawa 2015-03-28 20:13:37 +09:00
parent c4ccc376df
commit 95cb284e27
2 changed files with 5 additions and 4 deletions

View File

@ -406,7 +406,7 @@ void Client::on_stream_close(int32_t stream_id, bool success,
int Client::noop() { return 0; }
int Client::on_connect() {
int Client::connection_made() {
if (ssl) {
report_tls_info();
@ -576,7 +576,7 @@ int Client::connected() {
readfn = &Client::read_clear;
writefn = &Client::write_clear;
if (on_connect() != 0) {
if (connection_made() != 0) {
return -1;
}
@ -611,7 +611,7 @@ int Client::tls_handshake() {
readfn = &Client::read_tls;
writefn = &Client::write_tls;
if (on_connect() != 0) {
if (connection_made() != 0) {
return -1;
}

View File

@ -207,9 +207,10 @@ struct Client {
int on_read(const uint8_t *data, size_t len);
int on_write();
int on_connect();
int noop();
int connection_made();
void on_request(int32_t stream_id);
void on_header(int32_t stream_id, const uint8_t *name, size_t namelen,
const uint8_t *value, size_t valuelen);