1 /* -*- mode: c; c-basic-offset: 8; indent-tabs-mode: nil; -*-
2 * vim:expandtab:shiftwidth=8:tabstop=8:
4 * Copyright (c) 2002 Cray Inc.
6 * This file is part of Portals, http://www.sf.net/projects/sandiaportals/
11 typedef struct manager {
13 pthread_mutex_t conn_lock; /* protect connections table */
15 io_handler bound_handler;
16 int (*handler)(void *, void *);
22 typedef struct connection {
29 connection force_tcp_connection(manager m, unsigned int ip, unsigned int short);
30 manager init_connections(unsigned short, int (*f)(void *, void *), void *);
31 void remove_connection(void *arg);
32 void shutdown_connections(manager m);
33 int read_connection(connection c, unsigned char *dest, int len);