Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
fmp_vip
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
zhenfei.zhang
fmp_vip
Commits
0aab694b
Commit
0aab694b
authored
Dec 11, 2017
by
Amnes1a
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
删除不必要的宏定义
parent
3799713d
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
1 additions
and
8 deletions
+1
-8
fmp_vip_server.cpp
+1
-2
fmp_vip_settings.cpp
+0
-5
fmp_vip_settings.h
+0
-1
No files found.
fmp_vip_server.cpp
View file @
0aab694b
...
@@ -37,9 +37,8 @@ void FMPVipServer::Write(const QByteArray &data)
...
@@ -37,9 +37,8 @@ void FMPVipServer::Write(const QByteArray &data)
return
;
return
;
}
}
QString
ip
=
FMPVipSettings
::
instance
()
->
getMonitorServer
();
QTcpSocket
client
;
QTcpSocket
client
;
client
.
connectToHost
(
ip
,
23771
);
client
.
connectToHost
(
"127.0.0.1"
,
23771
);
if
(
!
client
.
waitForConnected
())
if
(
!
client
.
waitForConnected
())
{
{
FMP_ERROR
()
<<
"Connect monitor failed. "
<<
client
.
errorString
();
FMP_ERROR
()
<<
"Connect monitor failed. "
<<
client
.
errorString
();
...
...
fmp_vip_settings.cpp
View file @
0aab694b
...
@@ -27,11 +27,6 @@ bool FMPVipSettings::getIsNeedSocketHeader()
...
@@ -27,11 +27,6 @@ bool FMPVipSettings::getIsNeedSocketHeader()
return
_GetValue
(
FMP_INIKEY_NEEDSOCKETHEADER
,
false
).
toBool
();
return
_GetValue
(
FMP_INIKEY_NEEDSOCKETHEADER
,
false
).
toBool
();
}
}
QString
FMPVipSettings
::
getMonitorServer
()
{
return
_GetValue
(
FMP_INIKEY_MONITORSERVER
,
"127.0.0.1"
).
toString
();
}
QVariant
FMPVipSettings
::
_GetValue
(
const
QString
&
key
,
QVariant
defaultValue
)
QVariant
FMPVipSettings
::
_GetValue
(
const
QString
&
key
,
QVariant
defaultValue
)
{
{
if
(
_settings
)
{
if
(
_settings
)
{
...
...
fmp_vip_settings.h
View file @
0aab694b
...
@@ -16,7 +16,6 @@ public:
...
@@ -16,7 +16,6 @@ public:
QString
getServerUrl
();
QString
getServerUrl
();
bool
getIsNeedSocketHeader
();
bool
getIsNeedSocketHeader
();
QString
getMonitorServer
();
private
:
private
:
explicit
FMPVipSettings
(
QObject
*
parent
=
0
);
explicit
FMPVipSettings
(
QObject
*
parent
=
0
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment