Main Page   Modules   Data Structures   File List   Data Fields   Globals   Related Pages  

gm_send_to_peer.c File Reference

#include "gm_internal.h"
#include "gm_enable_fast_small_send.h"
#include "gm_send_queue.h"

Functions

GM_ENTRY_POINT void gm_send_to_peer_with_callback (gm_port_t *p, void *message, unsigned int size, gm_size_t len, unsigned int priority, unsigned int target_node_id, gm_send_completion_callback_t callback, void *context)

Detailed Description

This file contains the GM API function gm_send_to_peer_with_callback().


Function Documentation

GM_ENTRY_POINT void gm_send_to_peer_with_callback gm_port_t *    p,
void *    message,
unsigned int    size,
gm_size_t    len,
unsigned int    priority,
unsigned int    target_node_id,
gm_send_completion_callback_t    callback,
void *    context
 

gm_send_to_peer_with_callback() is an asynchronous send like gm_send_with_callback(), only with the target_node_id implicitly set to the same ID as port (sending to the same port). This function is marginally faster than gm_send_with_callback().

Parameters:
p  (IN) A pointer to the GM port over which the message is to be sent.
message  (IN) A pointer to the data to be sent.
size  (IN) The size receive buffer in which to store the message on the remote node.
len  (IN) The length (in bytes) of the message to be sent.
priority  (IN) The priority with which to send the message ('GM_HIGH_PRIORITY' or 'GM_LOW_PRIORITY').
target_node_id  (IN) The ID of the GM node to which the message should be sent.
callback  (IN) The client function to call when the send completes.
context  (IN) A pointer to pass to the CALLBACK function when it is called.
See also:
gm_send_with_callback
Author:
Glenn Brown
Version:
GM_API_VERSION (as defined in gm.h)


Generated on Mon Nov 3 15:39:26 2003 for GM by doxygen1.2.15