Link Search Menu Expand Document

System Call Interface

socket()

The opendtnd daemon creates a BP socket over a UDP convergence layer using the following socket() call. Note that connectionless messages only differ slightly in the protocol argument from connection oriented sockets like TCPCL.

if ((fd = socket(AF_BP, SOCK_BP, IPPROTO_UDPCL)) < 0) {
	handle_error("socket ");
}