Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
familyMart_takeaway
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
guanghui.cui
familyMart_takeaway
Commits
2f737d48
Commit
2f737d48
authored
Nov 28, 2018
by
guanghui.cui
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复windows下超时失效问题
parent
1a566a9d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
src/SocketModule.cpp
+1
-1
src/main.cpp
+1
-1
No files found.
src/SocketModule.cpp
View file @
2f737d48
...
...
@@ -194,7 +194,7 @@ void TCPClient::setSocketTimeout(int timeout)
{
#ifdef WIN32
int
iTimeOut
=
timeout
*
1000
;
setsockopt
(
m_sockfd
,
SOL_SOCKET
,
SO_RCVTIMEO
,
(
char
*
)
&
iTimeOut
,
sizeof
(
i
TimeOu
t
));
setsockopt
(
m_sockfd
,
SOL_SOCKET
,
SO_RCVTIMEO
,
(
char
*
)
&
iTimeOut
,
sizeof
(
i
n
t
));
#else
struct
timeval
vtime
;
vtime
.
tv_sec
=
timeout
;
...
...
src/main.cpp
View file @
2f737d48
...
...
@@ -19,7 +19,7 @@
INITIALIZE_EASYLOGGINGPP
#define VERSION "1.0.
6 beta 8
" //版本号
#define VERSION "1.0.
7
" //版本号
std
::
string
g_init_data
;
std
::
string
g_init_data_ods_back
;
...
...
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