Lines Matching refs:message
238 APF_TCP_FORWARD_REPLY_MESSAGE message;
240 message.MessageType = APF_REQUEST_SUCCESS;
241 message.PortBound = htonl(port);
244 int res = _sendMessage((unsigned char *)&message, sizeof(message));
246 return (res == sizeof(message));
363 APF_CHANNEL_OPEN_CONFIRMATION_MESSAGE message;
365 message.MessageType = APF_CHANNEL_OPEN_CONFIRMATION;
366 message.RecipientChannel = htonl(recipientChannel);
367 message.SenderChannel = htonl(senderChannel);
368 message.InitialWindowSize = htonl(RX_WINDOW_SIZE);
369 message.Reserved = 0xFFFFFFFF;
372 int res = _sendMessage((unsigned char *)&message, sizeof(message));
374 return (res == sizeof(message));
385 APF_CHANNEL_OPEN_FAILURE_MESSAGE message;
387 message.MessageType = APF_CHANNEL_OPEN_FAILURE;
388 message.RecipientChannel = htonl(recipientChannel);
389 message.ReasonCode = htonl(reason);
390 message.Reserved = 0x00000000;
391 message.Reserved2 = 0x00000000;
394 int res = _sendMessage((unsigned char *)&message, sizeof(message));
396 return (res == sizeof(message));
406 APF_CHANNEL_CLOSE_MESSAGE message;
408 message.MessageType = APF_CHANNEL_CLOSE;
409 message.RecipientChannel = htonl(recipientChannel);
412 int res = _sendMessage((unsigned char *)&message, sizeof(message));
414 return (res == sizeof(message));
425 APF_CHANNEL_DATA_MESSAGE *message;
431 message = (APF_CHANNEL_DATA_MESSAGE *)_txBuffer;
432 message->MessageType = APF_CHANNEL_DATA;
433 message->RecipientChannel = htonl(recipientChannel);
434 message->DataLength = htonl(len);
435 memcpy(message->Data, buffer, len);
438 return _sendMessage((unsigned char *)message, sizeof(APF_CHANNEL_DATA_MESSAGE) + len);
448 APF_WINDOW_ADJUST_MESSAGE message;
450 message.MessageType = APF_CHANNEL_WINDOW_ADJUST;
451 message.RecipientChannel = htonl(recipientChannel);
452 message.BytesToAdd = htonl(len);
455 int res = _sendMessage((unsigned char *)&message, sizeof(message));
457 return (res == sizeof(message));