Lines Matching refs:msg
80 * } msg;
90 * G - Get, requests that up to msg.length bytes of data be returned. The
93 * P - Put, requests that the first msg.length bytes of msg.data be appended
100 * Server msg Client msg
190 static int general_request ( io_channel chan, struct rpc_msg *msg, int length )
199 struct rpc_msg msg;
260 struct rpc_msg msg;
301 status = get ( chan, (char *) &msg, sizeof(msg), &length );
312 if ( msg.channel != 'A' ) {
314 msg.channel );
318 if ( msg.function == 'G' ) {
320 } else if ( msg.function == 'P' ) {
322 } else if ( msg.function == 'X' ) {
329 i = BIO_read ( s_bio, msg.data, msg.length );
332 msg.channel = 'A';
333 msg.function = 'C'; /* confirm */
334 msg.length = i;
335 status = put ( chan, (char *) &msg, i+RPC_HDR_SIZE );
340 i = BIO_write ( s_bio, msg.data, msg.length );
343 msg.channel = 'A';
344 msg.function = 'C'; /* confirm */
345 msg.length = 0;
346 status = put ( chan, (char *) &msg, RPC_HDR_SIZE );