Code example (continued)
/* Use convenience function to exchange port,
* key, bufsize, and stu_size with other end */
st_jumpstart(SOCK_STREAM, hostname, TCP_SERVER_PORT,
st_connector_get_port(conn),
st_connector_get_key(conn),
st_bufxrange_get_bufsize(bx),
st_connector_get_max_stu(conn),
&rem_bufsize, &rem_stusize);
ula = st_macaddr(iface, hostname);
/* Send mx info to other end so that ST knows
* where to receive the data. */
bzero(&tx_hdr, sizeof(hdr));
ST_HDR_SET_OPCODE(&hdr, ST_OP_CTS);
tx_hdr.Param = st_bufxrange_get_bufsize(bx);
tx_hdr.D_Port = rem_port;
tx_hdr.B_id = st_mx_get_id(mx);
tx_hdr.Bufx = st_bufxrange_get_base(bx);