File tree 2 files changed +8
-8
lines changed
2 files changed +8
-8
lines changed Original file line number Diff line number Diff line change 17
17
// #define _GNU_SOURCE
18
18
19
19
#include " svdrpc.h"
20
- int SVDRPPort = 2001 ;
21
- char *SVDRPHost = " 127.0.0.1" ;
20
+ int SVDRPPort = 6419 ;
21
+ char const *SVDRPHost = " 127.0.0.1" ;
22
22
23
23
24
24
#include < arpa/inet.h>
@@ -86,7 +86,7 @@ bool cSocket::Open(int Port)
86
86
return true ;
87
87
}
88
88
89
- int cSocket::Connect (char *Host)
89
+ int cSocket::Connect (char const *Host)
90
90
{
91
91
dsyslog (" cSocket::Connect to %s" , Host );
92
92
if (Open (port))
@@ -125,7 +125,7 @@ cSVDRPC::~cSVDRPC()
125
125
Close ();
126
126
}
127
127
128
- void cSVDRPC::Open (char *Host ,int Port)
128
+ void cSVDRPC::Open (char const *Host ,int Port)
129
129
{
130
130
dsyslog (" cSVDRPC::Open port is %d" ,Port );
131
131
name[0 ]=0 ;
Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ class cSocket {
31
31
public:
32
32
~cSocket ();
33
33
bool Open (int Port);
34
- int Connect (char *Host);
34
+ int Connect (char const *Host);
35
35
void Close (void );
36
36
};
37
37
@@ -41,7 +41,7 @@ class cSVDRPC {
41
41
bool Connected ();
42
42
bool CmdQuit ();
43
43
char name[22 ];
44
- void Open (char *Host, int Port);
44
+ void Open (char const *Host, int Port);
45
45
void Close (void );
46
46
bool Send (const char *s, int length = -1 );
47
47
bool ReadReply ();
@@ -53,8 +53,8 @@ class cSVDRPC {
53
53
char buf[MAXCMDBUFFER];
54
54
};
55
55
56
- extern int SVDRPPort;
57
- extern char *SVDRPHost;
56
+ extern int SVDRPPort;
57
+ extern char const *SVDRPHost;
58
58
59
59
void VDRMessage (const char *s);
60
60
void noadStartMessage ( const char *s );
You can’t perform that action at this time.
0 commit comments