Home | History | Annotate | Download | only in udp

Lines Matching refs:address

77 int UDPSocketWin::GetPeerAddress(IPEndPoint* address) const {
79 DCHECK(address);
89 scoped_ptr<IPEndPoint> address(new IPEndPoint());
90 if (!address->FromSockAddr(addr, addr_len))
92 remote_address_.reset(address.release());
95 *address = *remote_address_;
99 int UDPSocketWin::GetLocalAddress(IPEndPoint* address) const {
101 DCHECK(address);
111 scoped_ptr<IPEndPoint> address(new IPEndPoint());
112 if (!address->FromSockAddr(addr, addr_len))
114 local_address_.reset(address.release());
117 *address = *local_address_;
129 IPEndPoint* address,
138 int nread = InternalRecvFrom(buf, buf_len, address);
144 recv_from_address_ = address;
156 const IPEndPoint& address,
158 return SendToOrWrite(buf, buf_len, &address, callback);
163 const IPEndPoint* address,
171 int nwrite = InternalSendTo(buf, buf_len, address);
180 int UDPSocketWin::Connect(const IPEndPoint& address) {
183 int rv = CreateSocket(address);
190 if (!address.ToSockAddr(addr, &addr_len))
197 remote_address_.reset(new IPEndPoint(address));
201 int UDPSocketWin::Bind(const IPEndPoint& address) {
204 int rv = CreateSocket(address);
211 if (!address.ToSockAddr(addr, &addr_len))
222 int UDPSocketWin::CreateSocket(const IPEndPoint& address) {
223 socket_ = WSASocket(address.GetFamily(), SOCK_DGRAM, IPPROTO_UDP, NULL, 0,
265 bool UDPSocketWin::ProcessSuccessfulRead(int num_bytes, IPEndPoint* address) {
269 // Convert address.
270 if (address) {
273 if (!address->FromSockAddr(addr, recv_addr_len_))
298 IPEndPoint* address) {
321 if (!ProcessSuccessfulRead(num, address))
335 const IPEndPoint* address) {
340 // Convert address.
341 if (!address) {
345 if (!address->ToSockAddr(addr, &addr_len))