source: trunk/CrypPlugins/KeySearcher/ExternalClient/PlatformIndependentWrapper.h @ 2205

Last change on this file since 2205 was 2205, checked in by Sven Rech, 11 years ago

Added external client for other plattforms which can be used to support the keysearcher (client doesn't work yet)

File size: 455 bytes
Line 
1#include <string>
2
3class SocketException
4{
5};
6
7class PlatformIndependentWrapper
8{
9    private:
10        int sockfd;
11
12    public:
13        PlatformIndependentWrapper(int sockfd):
14            sockfd(sockfd)
15        {
16        }
17        std::string ReadString();
18        void WriteString(std::string);
19
20        int32_t ReadInt();
21        void WriteInt(int32_t);
22
23        void ReadArray(char* buf, int len);
24        void WriteArray(const char* buf, int num);
25};
Note: See TracBrowser for help on using the repository browser.