2004-03-26 17:15:20 +03:00
|
|
|
/*
|
2004-11-22 04:38:40 +03:00
|
|
|
* Copyright (c) 2004-2005 The Trustees of Indiana University.
|
|
|
|
* All rights reserved.
|
|
|
|
* Copyright (c) 2004-2005 The Trustees of the University of Tennessee.
|
|
|
|
* All rights reserved.
|
2004-11-28 23:09:25 +03:00
|
|
|
* Copyright (c) 2004-2005 High Performance Computing Center Stuttgart,
|
|
|
|
* University of Stuttgart. All rights reserved.
|
2005-03-24 15:43:37 +03:00
|
|
|
* Copyright (c) 2004-2005 The Regents of the University of California.
|
|
|
|
* All rights reserved.
|
2004-11-22 04:38:40 +03:00
|
|
|
* $COPYRIGHT$
|
|
|
|
*
|
|
|
|
* Additional copyrights may follow
|
|
|
|
*
|
2004-02-04 00:37:17 +03:00
|
|
|
* $HEADER$
|
|
|
|
*/
|
2004-03-26 17:15:20 +03:00
|
|
|
/**
|
|
|
|
* @file
|
|
|
|
*/
|
2004-02-04 00:37:17 +03:00
|
|
|
|
|
|
|
#ifndef MCA_PTL_TCP_SEND_REQUEST_H
|
|
|
|
#define MCA_PTL_TCP_SEND_REQUEST_H
|
|
|
|
|
2004-10-22 20:06:05 +04:00
|
|
|
#ifdef HAVE_SYS_TYPES_H
|
2004-02-04 00:37:17 +03:00
|
|
|
#include <sys/types.h>
|
2004-10-22 20:06:05 +04:00
|
|
|
#endif
|
|
|
|
#ifdef HAVE_SYS_SOCKET_H
|
2004-02-04 00:37:17 +03:00
|
|
|
#include <sys/socket.h>
|
2004-10-22 20:06:05 +04:00
|
|
|
#endif
|
|
|
|
#ifdef HAVE_NETINET_IN_H
|
2004-02-04 00:37:17 +03:00
|
|
|
#include <netinet/in.h>
|
2004-10-22 20:06:05 +04:00
|
|
|
#endif
|
2004-06-07 19:33:53 +04:00
|
|
|
#include "ompi_config.h"
|
2005-05-09 23:37:10 +04:00
|
|
|
#include "mca/ptl/base/ptl_base_sendreq.h"
|
2004-02-04 00:37:17 +03:00
|
|
|
#include "ptl_tcp_sendfrag.h"
|
2004-10-21 02:31:03 +04:00
|
|
|
#if defined(c_plusplus) || defined(__cplusplus)
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
2005-07-03 20:06:07 +04:00
|
|
|
extern opal_class_t mca_ptl_tcp_send_request_t_class;
|
2004-03-26 17:15:20 +03:00
|
|
|
/**
|
|
|
|
* TCP send request derived type. The send request contains both the
|
|
|
|
* base send request, and space for the first TCP send fragment descriptor.
|
|
|
|
* This avoids the overhead of a second allocation for the initial send
|
|
|
|
* fragment on every send request.
|
|
|
|
*/
|
2004-02-04 00:37:17 +03:00
|
|
|
struct mca_ptl_tcp_send_request_t {
|
2005-05-09 23:37:10 +04:00
|
|
|
mca_ptl_base_send_request_t super;
|
2004-02-04 00:37:17 +03:00
|
|
|
mca_ptl_tcp_send_frag_t req_frag; /* first fragment */
|
|
|
|
};
|
|
|
|
typedef struct mca_ptl_tcp_send_request_t mca_ptl_tcp_send_request_t;
|
|
|
|
|
2004-10-21 02:31:03 +04:00
|
|
|
#if defined(c_plusplus) || defined(__cplusplus)
|
|
|
|
}
|
|
|
|
#endif
|
2004-02-04 00:37:17 +03:00
|
|
|
#endif
|
|
|
|
|