Lines Matching full:socket
40 static void send_picture(int socket, const PictureHeader& header, const SkData& skp) {
53 nn_sendmsg(socket, &msg, 0/*flags*/);
56 static SkPicture* recv_picture(int socket, PictureHeader* header) {
60 int size = nn_recv(socket, &msg, NN_MSG, 0/*flags*/);
96 int socket = nn_socket(AF_SP, NN_REQ);
98 // Clients connect a socket to an endpoint.
99 nn_connect(socket, dataEndpoint);
103 send_picture(socket, header, *skp);
107 nn_recv(socket, &ack, sizeof(ack), 0/*flags*/);
132 // Servers bind a socket to an endpoint.
139 // If we got any message on the control socket, we can stop.
144 // We should have an .skp waiting for us on data socket.
167 // An NN_PUSH socket can send messages but not receive them.