Lines Matching defs:UDPSocket
29 UDPSocket::UDPSocket(const std::string& owner_extension_id)
36 UDPSocket::~UDPSocket() { Disconnect(); }
38 void UDPSocket::Connect(const std::string& address,
59 int UDPSocket::Bind(const std::string& address, int port) {
70 void UDPSocket::Disconnect() {
79 void UDPSocket::Read(int count, const ReadCompletionCallback& callback) {
107 &UDPSocket::OnReadComplete, base::Unretained(this), io_buffer));
114 int UDPSocket::WriteImpl(net::IOBuffer* io_buffer,
123 void UDPSocket::RecvFrom(int count,
153 base::Bind(&UDPSocket::OnRecvFromComplete,
163 void UDPSocket::SendTo(scoped_refptr<net::IOBuffer> io_buffer,
196 base::Bind(&UDPSocket::OnSendToComplete, base::Unretained(this)));
203 bool UDPSocket::IsConnected() { return is_connected_; }
205 bool UDPSocket::GetPeerAddress(net::IPEndPoint* address) {
209 bool UDPSocket::GetLocalAddress(net::IPEndPoint* address) {
213 Socket::SocketType UDPSocket::GetSocketType() const { return Socket::TYPE_UDP; }
215 void UDPSocket::OnReadComplete(scoped_refptr<net::IOBuffer> io_buffer,
222 void UDPSocket::OnRecvFromComplete(scoped_refptr<net::IOBuffer> io_buffer,
235 void UDPSocket::OnSendToComplete(int result) {
241 bool UDPSocket::IsBound() { return socket_.is_connected(); }
243 int UDPSocket::JoinGroup(const std::string& address) {
260 int UDPSocket::LeaveGroup(const std::string& address) {
277 int UDPSocket::SetMulticastTimeToLive(int ttl) {
281 int UDPSocket::SetMulticastLoopbackMode(bool loopback) {
285 const std::vector<std::string>& UDPSocket::GetJoinedGroups() const {
290 : UDPSocket(owner_extension_id),