|
UciWrite sends the content of the UCI-MSG
message structure to the client process identified by UCI-SOCKET in UCI-PAR.
The fields UCI-MSGBUF and UCI-MSGLEN of the UCI-MSG structure should
hold the data and the length of the message to send. Typically each client request
received through UciRead causes the server to send one
or more response messages. UciWrite will fail if one or more of the following is
true:
| UE_NOTINIT |
The UCI interface has not been initialize by a call to UciInit (UCI-ERRNO 1). |
| UE_BADSOCK |
The socket has not been initialized by a call to UciConnect
or UciOpen or the socket is not open (UCM-ERRNO
3). |
| UE_INTR |
The send process has been interrupted by a signal (9). |
| UE_CONNECT |
The socket has been closed (8). |
|