const IPEndPoint& client_address() const { return client_address_; }
- EpollServer* epoll_server() { return epoll_server_; }
-
int fd() { return fd_; }
const QuicServerId& server_id() const { return server_id_; }
IPEndPoint* server_address,
IPAddressNumber* client_ip);
+ EpollServer* epoll_server() { return epoll_server_; }
+ QuicConfig* config() { return &config_; }
+
private:
friend class net::tools::test::QuicClientPeer;
// Local port to bind to. Initialize to 0.
int local_port_;
+ // Writer used to actually send packets to the wire. Needs to outlive
+ // |session_|.
+ scoped_ptr<QuicPacketWriter> writer_;
+
// Session which manages streams.
scoped_ptr<QuicClientSession> session_;
// Listens for events on the client socket.
// Listens for full responses.
scoped_ptr<ResponseListener> response_listener_;
- // Writer used to actually send packets to the wire.
- scoped_ptr<QuicPacketWriter> writer_;
-
// Tracks if the client is initialized to connect.
bool initialized_;