ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/COMP/DBS/Servers/AppServer/include/Socket.hpp
Revision: 1.1
Committed: Mon Oct 31 22:10:36 2005 UTC (19 years, 6 months ago) by afaq
Branch point for: v00, MAIN
Log Message:
Initial revision

File Contents

# User Rev Content
1 afaq 1.1 #ifndef _Socket_hpp_included_
2     #define _Socket_hpp_included_
3    
4    
5     #include <sys/socket.h>
6     #include <string>
7    
8    
9     class Socket{
10     private:
11     std::string fqdn;
12     int port;
13     int descriptor;
14     public:
15     Socket(std::string fqdn, int port);
16     Socket();
17     void setDes(int des);
18     void setFqdn(std::string fqdn);
19     void setPort(int port);
20     int getDes();
21     int connect();
22     };
23    
24     #endif
25