2004-02-03 21:37:17 +00:00
|
|
|
/*
|
2005-11-05 19:57:48 +00:00
|
|
|
* Copyright (c) 2004-2005 The Trustees of Indiana University and Indiana
|
|
|
|
* University Research and Technology
|
|
|
|
* Corporation. All rights reserved.
|
|
|
|
* Copyright (c) 2004-2005 The University of Tennessee and The University
|
|
|
|
* of Tennessee Research Foundation. All rights
|
|
|
|
* reserved.
|
2004-11-28 20:09:25 +00:00
|
|
|
* Copyright (c) 2004-2005 High Performance Computing Center Stuttgart,
|
|
|
|
* University of Stuttgart. All rights reserved.
|
2005-03-24 12:43:37 +00:00
|
|
|
* Copyright (c) 2004-2005 The Regents of the University of California.
|
|
|
|
* All rights reserved.
|
2004-11-22 01:38:40 +00:00
|
|
|
* $COPYRIGHT$
|
|
|
|
*
|
|
|
|
* Additional copyrights may follow
|
|
|
|
*
|
2004-02-03 21:37:17 +00:00
|
|
|
* $HEADER$
|
|
|
|
*/
|
2004-10-20 01:03:09 +00:00
|
|
|
#include "ompi_config.h"
|
2004-10-22 16:06:05 +00:00
|
|
|
#ifdef HAVE_UNISTD_H
|
2004-02-03 21:37:17 +00:00
|
|
|
#include <unistd.h>
|
2004-10-22 16:06:05 +00:00
|
|
|
#endif
|
|
|
|
#ifdef HAVE_SYS_TYPES_H
|
2004-02-03 21:37:17 +00:00
|
|
|
#include <sys/types.h>
|
2004-10-22 16:06:05 +00:00
|
|
|
#endif
|
2005-01-20 00:03:23 +00:00
|
|
|
#include "include/ompi_socket_errno.h"
|
2004-06-17 21:48:33 +00:00
|
|
|
#include "include/types.h"
|
2005-05-09 19:37:10 +00:00
|
|
|
#include "mca/ptl/base/ptl_base_sendreq.h"
|
2004-02-03 21:37:17 +00:00
|
|
|
#include "ptl_tcp.h"
|
|
|
|
#include "ptl_tcp_sendreq.h"
|
|
|
|
|
|
|
|
|
2004-02-10 14:04:27 +00:00
|
|
|
static void mca_ptl_tcp_send_request_construct(mca_ptl_tcp_send_request_t*);
|
|
|
|
static void mca_ptl_tcp_send_request_destruct(mca_ptl_tcp_send_request_t*);
|
2004-02-03 21:37:17 +00:00
|
|
|
|
|
|
|
|
2005-07-03 16:06:07 +00:00
|
|
|
opal_class_t mca_ptl_tcp_send_request_t_class = {
|
2004-02-03 21:37:17 +00:00
|
|
|
"mca_ptl_tcp_send_request_t",
|
2005-05-09 19:37:10 +00:00
|
|
|
OBJ_CLASS(mca_ptl_base_send_request_t),
|
2005-07-03 16:06:07 +00:00
|
|
|
(opal_construct_t)mca_ptl_tcp_send_request_construct,
|
|
|
|
(opal_destruct_t)mca_ptl_tcp_send_request_destruct
|
2004-02-03 21:37:17 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
2004-02-10 14:04:27 +00:00
|
|
|
void mca_ptl_tcp_send_request_construct(mca_ptl_tcp_send_request_t* request)
|
2004-02-03 21:37:17 +00:00
|
|
|
{
|
2004-02-10 14:04:27 +00:00
|
|
|
OBJ_CONSTRUCT(&request->req_frag, mca_ptl_tcp_send_frag_t);
|
2004-02-03 21:37:17 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2004-02-10 14:04:27 +00:00
|
|
|
void mca_ptl_tcp_send_request_destruct(mca_ptl_tcp_send_request_t* request)
|
2004-02-03 21:37:17 +00:00
|
|
|
{
|
2004-02-10 14:04:27 +00:00
|
|
|
OBJ_DESTRUCT(&request->req_frag);
|
2004-02-03 21:37:17 +00:00
|
|
|
}
|
|
|
|
|