/* * Copyright (c) 1995, 1996 Gunther Schadow. All rights reserved. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ #ifndef HL7_ILLP_SESSION_H_ #define HL7_ILLP_SESSION_H_ #include #pragma interface #include "ANYmsg.h" #define CONNECT_ID_SIZE 128 typedef char connect_id_t[CONNECT_ID_SIZE]; class iosockinet *connect_illp(const char *host, const char *service, connect_id_t connect_id = NULL); class iosockinet *accept_illp(const char *service, connect_id_t *connect_id = NULL); void close(class iosockinet*); result receive_message(class iosockinet*, class ANYmsg&, const char *App = NULL, const char *Fac = NULL); result send_message(class iosockinet*, class ANYmsg&); result send_message(class iosockinet*, class HL7Message&); result chat_illp(const char *host, const char *serv, class ANYmsg &request, class ANYmsg &result, connect_id_t cid = NULL); result chat_illp(const char *host, const char *serv, class HL7Message &request, class ANYmsg &result, connect_id_t cid = NULL); #ifndef OUTLINE # include "illp-session.icc" #endif #endif /* ! HL7_ILLP_SESSION_H_ */