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/
10 #include <procbridge.h>
12 typedef struct manager {
14 pthread_mutex_t conn_lock; /* protect connections table */
16 io_handler bound_handler;
17 int (*handler)(void *, void *);
23 typedef struct connection {
30 connection force_tcp_connection(manager m, unsigned int ip, unsigned int short,
32 manager init_connections(unsigned short, int (*f)(void *, void *), void *);
33 void remove_connection(void *arg);
34 void shutdown_connections(manager m);
35 int read_connection(connection c, unsigned char *dest, int len);