Home | History | Annotate | Download | only in udp

Lines Matching full:server

46   // to send to. Otherwise, will send to the last socket this server
129 // Setup the server to listen.
132 UDPServerSocket server(NULL, NetLog::Source());
133 int rv = server.Listen(bind_address);
143 // Client sends to the server.
147 // Server waits for message.
148 std::string str = RecvFromSocket(&server);
151 // Server echoes reply.
152 rv = SendToSocket(&server, simple_message);
165 // binds the client's sends to send to a particular server endpoint, but does
174 // Setup the first server to listen.
181 // Setup the second server to listen.
187 // Setup the client, connected to server 1.
274 UDPServerSocket server(NULL, NetLog::Source());
275 int rv = server.Listen(bind_address);
279 rv = server.GetLocalAddress(&local_address);
290 UDPServerSocket server(NULL, NetLog::Source());
291 int rv = server.Listen(bind_address);
295 rv = server.GetPeerAddress(&peer_address);
303 UDPServerSocket server(NULL, NetLog::Source());
304 int rv = server.Listen(bind_address);
309 rv = server.RecvFrom(buffer_, kMaxRead, &from, &callback);
312 server.Close();