Skip to content

Commit 12c68a9

Browse files
committed
change svdrp port
Signed-off-by: Martin Dummer <[email protected]>
1 parent c9eb960 commit 12c68a9

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

svdrpc.cpp

+4-4
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
//#define _GNU_SOURCE
1818

1919
#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";
2222

2323

2424
#include <arpa/inet.h>
@@ -86,7 +86,7 @@ bool cSocket::Open(int Port)
8686
return true;
8787
}
8888

89-
int cSocket::Connect(char *Host)
89+
int cSocket::Connect(char const *Host)
9090
{
9191
dsyslog("cSocket::Connect to %s", Host );
9292
if (Open(port))
@@ -125,7 +125,7 @@ cSVDRPC::~cSVDRPC()
125125
Close();
126126
}
127127

128-
void cSVDRPC::Open(char *Host ,int Port)
128+
void cSVDRPC::Open(char const *Host ,int Port)
129129
{
130130
dsyslog("cSVDRPC::Open port is %d",Port );
131131
name[0]=0;

svdrpc.h

+4-4
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ class cSocket {
3131
public:
3232
~cSocket();
3333
bool Open(int Port);
34-
int Connect(char *Host);
34+
int Connect(char const *Host);
3535
void Close(void);
3636
};
3737

@@ -41,7 +41,7 @@ class cSVDRPC {
4141
bool Connected();
4242
bool CmdQuit();
4343
char name[22];
44-
void Open(char *Host, int Port);
44+
void Open(char const *Host, int Port);
4545
void Close(void);
4646
bool Send(const char *s, int length = -1);
4747
bool ReadReply();
@@ -53,8 +53,8 @@ class cSVDRPC {
5353
char buf[MAXCMDBUFFER];
5454
};
5555

56-
extern int SVDRPPort;
57-
extern char *SVDRPHost;
56+
extern int SVDRPPort;
57+
extern char const *SVDRPHost;
5858

5959
void VDRMessage(const char *s);
6060
void noadStartMessage( const char *s );

0 commit comments

Comments
 (0)