/[cvs]/api/Classes/NetWork/Client.h
ViewVC logotype

Contents of /api/Classes/NetWork/Client.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1.1.1 - (show annotations) (vendor branch)
Sun Jul 1 20:47:58 2001 UTC (22 years, 10 months ago) by bearsoft
Branch: lazy, MAIN
CVS Tags: start, HEAD
Changes since 1.1: +0 -0 lines
File MIME type: text/plain
First import

1 #ifndef __Client_H__
2 #define __Client_H__
3
4 //#include <sys/types.h>
5 #include <winsock.h>
6 //#include <unistd.h>
7 //#include <netinet/in.h>
8 //#include <arpa/inet.h>
9 //#include <netdb.h>
10 #include <string.h>
11 //#include <strings.h>
12 #include <stdlib.h>
13 #include <iostream.h>
14
15 class Client
16 {
17
18 public:
19 Client::Client();
20 Client::~Client();
21 void connectToServer();
22 void sendData();
23 void recieveData();
24 void sendString(char *buffer, int fileDescriptor, int size);
25 char *recieveString(int fileDescriptor);
26 void disConnectFromServer();
27
28 private:
29
30 struct sockaddr_in sa;
31 int socketDescriptor;
32 int sinSize;
33 bool connectionStatement;
34 WORD wVersionRequested;
35 WSADATA wsaData;
36 int err;
37 };
38
39 #endif

root@recompile.se
ViewVC Help
Powered by ViewVC 1.1.26