HP Rp7410 HP DLPI Programmer's Guide - Page 200
get_msgsend_fd, check_ctrlDL_DISCONNECT_IND
View all HP Rp7410 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 200 highlights
Sample Programs Connection Mode Example } printf("received %d bytes of data\n", data_buf.len); } /* We're finished. Now we tear down the connection. a DISCONNECT_REQ on the receiver side. */ disconnect_req(recv_d_fd); We'll send /* and receive the DISCONNECT_IND on the sender side. */ get_msg(send_fd); check_ctrl(DL_DISCONNECT_IND); /* And finally, we tear down the sender and receiver streams */ cleanup(send_fd); cleanup(recv_d_fd); } 200 Appendix A
Sample Programs
Connection Mode Example
Appendix A
200
}
printf("received %d bytes of data\n", data_buf.len);
}
/*
We’re finished.
Now we tear down the connection.
We’ll send
a DISCONNECT_REQ on the receiver side.
*/
disconnect_req(recv_d_fd);
/* and receive the DISCONNECT_IND on the sender side. */
get_msg(send_fd);
check_ctrl(DL_DISCONNECT_IND);
/* And finally, we tear down the sender and receiver streams */
cleanup(send_fd);
cleanup(recv_d_fd);
}