Lines Matching refs:Packet
32 struct Packet::Data final : public MemoryRetainer {
62 const SocketAddress& Packet::destination() const { in destination()
66 bool Packet::is_sending() const { in is_sending()
70 size_t Packet::length() const { in length()
74 Packet::operator uv_buf_t() const { in operator uv_buf_t()
78 Packet::operator ngtcp2_vec() const { in operator ngtcp2_vec()
82 void Packet::Truncate(size_t len) { in Truncate()
88 Local<FunctionTemplate> Packet::GetConstructorTemplate(Environment* env) { in GetConstructorTemplate()
95 Packet::kInternalFieldCount); in GetConstructorTemplate()
102 BaseObjectPtr<Packet> Packet::Create(Environment* env, in Create()
114 return BaseObjectPtr<Packet>(); in Create()
117 return MakeBaseObject<Packet>( in Create()
127 BaseObjectPtr<Packet> Packet::Clone() const { in Clone()
135 return BaseObjectPtr<Packet>(); in Clone()
138 return MakeBaseObject<Packet>(env(), listener_, obj, destination_, data_); in Clone()
144 BaseObjectPtr<Packet> Packet::FromFreeList(Environment* env, in FromFreeList()
152 auto packet = static_cast<Packet*>(obj.get()); in FromFreeList()
156 return BaseObjectPtr<Packet>(packet); in FromFreeList()
159 Packet::Packet(Environment* env, in Packet() function in node::quic::Packet
169 Packet::Packet(Environment* env, in Packet() function in node::quic::Packet
175 : Packet(env, in Packet()
181 int Packet::Send(uv_udp_t* handle, BaseObjectPtr<BaseObject> ref) { in Send()
194 auto ptr = static_cast<Packet*>(ReqWrap<uv_udp_send_t>::from_req(req)); in Send()
201 void Packet::Done(int status) { in Done()
220 std::string Packet::ToString() const { in ToString()
225 void Packet::MemoryInfo(MemoryTracker* tracker) const { in MemoryInfo()
231 BaseObjectPtr<Packet> Packet::CreateRetryPacket( in CreateRetryPacket()
243 if (!token) return BaseObjectPtr<Packet>(); in CreateRetryPacket()
252 if (!packet) return BaseObjectPtr<Packet>(); in CreateRetryPacket()
264 if (nwrite <= 0) return BaseObjectPtr<Packet>(); in CreateRetryPacket()
269 BaseObjectPtr<Packet> Packet::CreateConnectionClosePacket( in CreateConnectionClosePacket()
275 auto packet = Packet::Create( in CreateConnectionClosePacket()
281 if (nwrite < 0) return BaseObjectPtr<Packet>(); in CreateConnectionClosePacket()
286 BaseObjectPtr<Packet> Packet::CreateImmediateConnectionClosePacket( in CreateImmediateConnectionClosePacket()
292 auto packet = Packet::Create(env, in CreateImmediateConnectionClosePacket()
309 if (nwrite <= 0) return BaseObjectPtr<Packet>(); in CreateImmediateConnectionClosePacket()
314 BaseObjectPtr<Packet> Packet::CreateStatelessResetPacket( in CreateStatelessResetPacket()
327 if (pktlen < kMinStatelessResetLen) return BaseObjectPtr<Packet>(); in CreateStatelessResetPacket()
333 auto packet = Packet::Create(env, in CreateStatelessResetPacket()
343 return BaseObjectPtr<Packet>(); in CreateStatelessResetPacket()
350 BaseObjectPtr<Packet> Packet::CreateVersionNegotiationPacket( in CreateVersionNegotiationPacket()
381 auto packet = Packet::Create(env, in CreateVersionNegotiationPacket()
398 if (nwrite <= 0) return BaseObjectPtr<Packet>(); in CreateVersionNegotiationPacket()