Connection.h (573B)
1 // Copyright 1999, Brian J. Swetland. All Rights Reserved. 2 // This file is provided under the terms of the OpenBLT License 3 4 #ifndef __BLT_CONNECTION_H 5 #define __BLT_CONNECTION_H 6 7 #include <blt/types.h> 8 9 namespace BLT { 10 11 class Message; 12 13 class Connection 14 { 15 public: 16 ~Connection(); 17 18 int Send(const Message *msg); 19 int Recv(Message *msg); 20 21 int Call(const Message *send, Message *recv); 22 23 static Connection *FindService(const char *name); 24 static Connection *CreateService(const char *name); 25 26 private: 27 Connection(); 28 29 int _local_port; 30 int _remote_port; 31 }; 32 33 } 34 35 #endif