forked from nodejs/node
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathstreams.cc
More file actions
63 lines (52 loc) · 1.54 KB
/
Copy pathstreams.cc
File metadata and controls
63 lines (52 loc) · 1.54 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
#if HAVE_OPENSSL && NODE_OPENSSL_HAS_QUIC
#include "streams.h"
#include <async_wrap-inl.h>
#include <base_object-inl.h>
#include <env-inl.h>
#include <memory_tracker-inl.h>
#include <node_bob-inl.h>
#include <node_sockaddr-inl.h>
#include "session.h"
namespace node {
namespace quic {
Stream::Stream(BaseObjectPtr<Session> session, v8::Local<v8::Object> obj)
: AsyncWrap(session->env(), obj, AsyncWrap::PROVIDER_QUIC_STREAM) {
MakeWeak();
}
Stream* Stream::From(void* stream_user_data) {
DCHECK_NOT_NULL(stream_user_data);
return static_cast<Stream*>(stream_user_data);
}
BaseObjectPtr<Stream> Stream::Create(Session* session, int64_t id) {
return BaseObjectPtr<Stream>();
}
int64_t Stream::id() const {
return 0;
}
Side Stream::origin() const {
return Side::CLIENT;
}
Direction Stream::direction() const {
return Direction::BIDIRECTIONAL;
}
bool Stream::is_destroyed() const {
return false;
}
bool Stream::is_eos() const {
return false;
}
void Stream::Acknowledge(size_t datalen) {}
void Stream::Blocked() {}
void Stream::Commit(size_t datalen) {}
void Stream::End() {}
void Stream::Destroy(QuicError error) {}
void Stream::ReceiveData(const uint8_t* data,
size_t len,
ReceiveDataFlags flags) {}
void Stream::ReceiveStopSending(QuicError error) {}
void Stream::ReceiveStreamReset(uint64_t final_size, QuicError error) {}
void Stream::Schedule(Stream::Queue* queue) {}
void Stream::Unschedule() {}
} // namespace quic
} // namespace node
#endif // HAVE_OPENSSL && NODE_OPENSSL_HAS_QUIC