Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
device-new-platform
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
赵啸非
device-new-platform
Commits
325cdc45
Commit
325cdc45
authored
May 17, 2022
by
赵啸非
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改消息组件
parent
1416ad36
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
device-manager/src/main/java/com/mortals/xhx/daemon/applicationservice/NettyStartedService.java
...ls/xhx/daemon/applicationservice/NettyStartedService.java
+1
-1
device-manager/src/test/java/com/mortals/httpclient/UDPClientHandler.java
...rc/test/java/com/mortals/httpclient/UDPClientHandler.java
+1
-1
No files found.
device-manager/src/main/java/com/mortals/xhx/daemon/applicationservice/NettyStartedService.java
View file @
325cdc45
...
...
@@ -29,7 +29,7 @@ public class NettyStartedService implements IApplicationStartedService {
public
void
start
()
{
logger
.
info
(
"开始netty服务...."
);
thread
=
new
Thread
(()
->
{
controlServer
.
run
(
61112
);
controlServer
.
run
(
7788
);
});
thread
.
setDaemon
(
true
);
thread
.
start
();
...
...
device-manager/src/test/java/com/mortals/httpclient/UDPClientHandler.java
View file @
325cdc45
...
...
@@ -34,7 +34,7 @@ public class UDPClientHandler extends SimpleChannelInboundHandler<DatagramPacket
for
(
int
i
=
0
;
i
<
10
;
i
++)
{
log
.
info
(
"send msg:{}"
,
i
);
ctx
.
writeAndFlush
(
new
DatagramPacket
(
Unpooled
.
copiedBuffer
(
"我在广播"
+
i
,
Charset
.
forName
(
"utf-8"
)),
new
InetSocketAddress
(
"
255.255.255.255"
,
61112
)));
new
InetSocketAddress
(
"
192.168.0.98"
,
7788
)));
try
{
TimeUnit
.
SECONDS
.
sleep
(
2
);
}
catch
(
InterruptedException
e
)
{
...
...
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