Home
last modified time | relevance | path

Searched refs:DataSocket (Results 1 – 5 of 5) sorted by relevance

/external/webrtc/webrtc/examples/peerconnection/server/
Dpeer_channel.h21 class DataSocket; variable
26 explicit ChannelMember(DataSocket* socket);
32 bool is_wait_request(DataSocket* ds) const;
44 void ForwardRequestToPeer(DataSocket* ds, ChannelMember* peer);
46 void OnClosing(DataSocket* ds);
51 void SetWaitingSocket(DataSocket* ds);
58 DataSocket* waiting_socket_;
83 static bool IsPeerConnection(const DataSocket* ds);
86 ChannelMember* Lookup(DataSocket* ds) const;
90 ChannelMember* IsTargetedRequest(const DataSocket* ds) const;
[all …]
Dpeer_channel.cc57 ChannelMember::ChannelMember(DataSocket* socket) in ChannelMember()
61 assert(socket->method() == DataSocket::GET); in ChannelMember()
75 bool ChannelMember::is_wait_request(DataSocket* ds) const { in is_wait_request()
106 void ChannelMember::ForwardRequestToPeer(DataSocket* ds, ChannelMember* peer) { in ForwardRequestToPeer()
124 void ChannelMember::OnClosing(DataSocket* ds) { in OnClosing()
137 assert(waiting_socket_->method() == DataSocket::GET); in QueueResponse()
155 void ChannelMember::SetWaitingSocket(DataSocket* ds) { in SetWaitingSocket()
156 assert(ds->method() == DataSocket::GET); in SetWaitingSocket()
173 bool PeerChannel::IsPeerConnection(const DataSocket* ds) { in IsPeerConnection()
175 return (ds->method() == DataSocket::POST && ds->content_length() > 0) || in IsPeerConnection()
[all …]
Ddata_socket.cc27 const char DataSocket::kCrossOriginAllowHeaders[] =
71 std::string DataSocket::request_arguments() const { in request_arguments()
78 bool DataSocket::PathEquals(const char* path) const { in PathEquals()
86 bool DataSocket::OnDataAvailable(bool* close_socket) { in OnDataAvailable()
117 bool DataSocket::Send(const std::string& data) const { in Send()
122 bool DataSocket::Send(const std::string& status, bool connection_close, in Send()
155 void DataSocket::Clear() { in Clear()
164 bool DataSocket::ParseHeaders() { in ParseHeaders()
187 bool DataSocket::ParseMethodAndPath(const char* begin, size_t len) { in ParseMethodAndPath()
224 bool DataSocket::ParseContentLengthAndType(const char* headers, size_t length) { in ParseContentLengthAndType()
[all …]
Dmain.cc27 void HandleBrowserRequest(DataSocket* ds, bool* quit) { in HandleBrowserRequest()
38 } else if (ds->method() == DataSocket::OPTIONS) { in HandleBrowserRequest()
78 typedef std::vector<DataSocket*> SocketArray; in main()
97 DataSocket* s = *i; in main()
157 DataSocket* s = listener.Accept(); in main()
Ddata_socket.h54 class DataSocket : public SocketBase {
63 explicit DataSocket(NativeSocket socket) in DataSocket() function
69 ~DataSocket() { in ~DataSocket()
150 DataSocket* Accept() const;