summaryrefslogtreecommitdiff
path: root/net/v6eval/files/patch-lib_Cm_CmSocket.h
blob: 3459ec5e9806c1a47d0a7bde0a7ac795a4e30f12 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
--- lib/Cm/CmSocket.h.orig	2003-10-23 13:37:30.000000000 +0900
+++ lib/Cm/CmSocket.h	2013-06-16 10:52:19.000000000 +0900
@@ -147,9 +147,9 @@
 inline int CmSockAddr::length() const {return length_;}
 inline sock* CmSockAddr::sockAddr() const {return addr_;}
 
-struct SocketSet;
+class SocketSet;
 //======================================================================
-struct CmSocket:public CmSockAddr {
+class CmSocket:public CmSockAddr {
 private:
 	int fileDesc_;
 	int syserrno_;
@@ -250,7 +250,7 @@
 
 //======================================================================
 // Stream Specific Functions
-struct CmStream:public CmSocket {
+class CmStream:public CmSocket {
 private:
 	CmSockAddr* self_;
 	CmSockAddr* peer_;
@@ -284,7 +284,8 @@
 // Datagram Socket can be used with connect and send/receive,
 // and can be specified the receiver when sending or can be given
 // the sender when receiving.
-struct CmDgram:public CmSocket {
+class CmDgram:public CmSocket {
+public:
 	CmDgram(int l,const sock* s=0,int fd=-1);
 	CmDgram(const inSock&,int fd=-1);
 	CmDgram(const in6Sock&,int fd=-1);
@@ -300,7 +301,8 @@
 
 //======================================================================
 // Raw Specific Functions
-struct CmRaw:public CmDgram {
+class CmRaw:public CmDgram {
+public:
 	CmRaw(int l,const sock* s=0,int fd=-1);
 virtual	int socket();
 virtual	CmSocket* create(int,const sock*,int=-1);
@@ -310,7 +312,8 @@
 //======================================================================
 // for Unix Domain Socket
 //	It can be stream/datagram and any address or pathname.
-struct UnixSocket {
+class UnixSocket {
+public:
 static CmSocket* stream();
 static CmSocket* stream(CSTR aName);
 static CmDgram* datagram();
@@ -323,7 +326,7 @@
 // for Inet Domain Socket
 //	It can be stream/datagram and any address or service
 //	with/without hostname/ipaddress.
-struct InetSocket {
+class InetSocket {
 static int getService(CSTR serv);
 //----------------------------------------------------------------------
 // defaultService is used for debugging.