Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
A
ademco_hb
Project
Project
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
captainwong
ademco_hb
Commits
39f5b8b4
Commit
39f5b8b4
authored
Oct 09, 2019
by
captainwong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
0901a155
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
6 deletions
+8
-6
server_demo.cpp
server_demo/server_demo.cpp
+6
-5
server_demo.vcxproj.user
server_demo/server_demo.vcxproj.user
+2
-1
No files found.
server_demo/server_demo.cpp
View file @
39f5b8b4
...
...
@@ -41,9 +41,6 @@ std::vector<ADEMCO_EVENT> evntsWaiting4Send = {};
int
main
(
int
argc
,
char
**
argv
)
{
usage
(
argv
[
0
]);
if
(
argc
<
2
)
{
return
0
;
}
WSADATA
wsaData
;
int
err
=
WSAStartup
(
MAKEWORD
(
1
,
1
),
&
wsaData
);
...
...
@@ -52,7 +49,11 @@ int main(int argc, char** argv)
abort
();
}
int
port
=
atoi
(
argv
[
1
]);
int
port
=
12345
;
if
(
argc
>
1
)
{
port
=
atoi
(
argv
[
1
]);
}
struct
sockaddr_in
sAddrIn
;
memset
(
&
sAddrIn
,
0
,
sizeof
(
sAddrIn
));
...
...
server_demo/server_demo.vcxproj.user
View file @
39f5b8b4
<?xml version="1.0" encoding="utf-8"?>
<Project
ToolsVersion=
"Current"
xmlns=
"http://schemas.microsoft.com/developer/msbuild/2003"
>
<PropertyGroup
Condition=
"'$(Configuration)|$(Platform)'=='Debug|Win32'"
>
<LocalDebuggerCommandArguments>
12346
</LocalDebuggerCommandArguments>
<LocalDebuggerCommandArguments>
</LocalDebuggerCommandArguments>
<DebuggerFlavor>
WindowsLocalDebugger
</DebuggerFlavor>
</PropertyGroup>
</Project>
\ No newline at end of file
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