Function

sock_inject_data_out

Declaration

errno_t sock_inject_data_out(socket_t so, const struct sockaddr *to, mbuf_t data, mbuf_t control, sflt_data_flag_t flags);

Parameters

so

The socket to inject the data on.

to

The address the data should be sent to, only necessary on un-connected sockets. The caller is responsible for freeing the to address after sock_inject_data_out returns.

data

The data and possibly control mbufs.

control

The separate control mbufs.

flags

Flags indicating the type of data.

Return Value

0 on success otherwise the errno error. The data and control values are always freed regardless of return value.

Discussion

Inject data in to the send buffer of the socket as if it had come from the client.

See Also

Miscellaneous

sflt_attach

Deprecated
sflt_detach

Deprecated
sflt_register

Deprecated
sflt_unregister

Deprecated
sockopt_copyin

Deprecated
sockopt_copyout

Deprecated
sockopt_level

Deprecated
sockopt_name

Deprecated
sockopt_valsize

Deprecated