2
* ADIOS is freely available under the terms of the BSD license described
3
* in the COPYING file in the top level directory of this source distribution.
5
* Copyright (c) 2008 - 2009. UT-BATTELLE, LLC. All rights reserved.
10
#include <sys/socket.h>
11
#include <netinet/in.h>
13
/** Get host:port info from some file.
15
env_var_name environment variable name that contains the path to a file to be checked
16
filename name of file to be looked for if not named in the env var.
17
path, first path to look for 'filename'
18
alternate_path alternate path to look for 'filename'
19
default_port value to be returned in 'port' if port info is not found
22
host host name, string will be allocated
25
Host will be NULL if information is not found
26
port will be default_port if that part of info is not found
32
int adios_create_socket(int *socketid);
33
int adios_close_socket(int socketid);
34
int adios_set_socket_address(char *hostname,int port,struct sockaddr_in *address);
35
int adios_bind_socket(int socketid,struct sockaddr_in *address);
36
int adios_connect_socket(int socketid,struct sockaddr_in *address);
37
int adios_socket_start_listen(int socketid);
38
int adios_socket_accept(int socketid,int *connected);
39
int adios_blocking_read_request(int socketid,char *buffer,int maxlength);
41
/** Read message in one block that fits into buffer.
42
Much faster than adios_BlockingReadRequest that is used for short message exchange only.
44
int adios_read_block(int socketid,char *buffer,int maxlength);
46
int adios_blocking_write_request(int socketid,char *buffer,int length);
47
int adios_get_own_hostname(char *host);
48
int adios_get_remote_hostname(int socket,char *remotehost);