Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-proxy
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
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
MyCard
ygopro-proxy
Commits
dba084d0
Commit
dba084d0
authored
Aug 14, 2022
by
Chunchi Che
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update ygopro.proto
parent
d42f4cf6
Changes
3
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
77 additions
and
87 deletions
+77
-87
DarkNeos/ygopropb/ygopro.pb.go
DarkNeos/ygopropb/ygopro.pb.go
+75
-84
proxy.go
proxy.go
+2
-2
ygopro.proto
ygopro.proto
+0
-1
No files found.
DarkNeos/ygopropb/ygopro.pb.go
View file @
dba084d0
This diff is collapsed.
Click to expand it.
proxy.go
View file @
dba084d0
...
@@ -53,7 +53,7 @@ func wsProxy(ws *websocket.Conn, tcp *net.Conn, wg *sync.WaitGroup) {
...
@@ -53,7 +53,7 @@ func wsProxy(ws *websocket.Conn, tcp *net.Conn, wg *sync.WaitGroup) {
for
{
for
{
messageType
,
buf
,
err
:=
ws
.
ReadMessage
()
messageType
,
buf
,
err
:=
ws
.
ReadMessage
()
if
err
!=
nil
{
if
err
!=
nil
{
log
.
Fatal
(
"websocket read message error: "
,
err
)
log
.
Println
(
"websocket read message error: "
,
err
)
break
break
}
}
...
@@ -88,7 +88,7 @@ func tcpProxy(tcp *net.Conn, ws *websocket.Conn, wg *sync.WaitGroup) {
...
@@ -88,7 +88,7 @@ func tcpProxy(tcp *net.Conn, ws *websocket.Conn, wg *sync.WaitGroup) {
continue
continue
}
}
log
.
Fatal
(
"tcp read message error: "
,
err
)
log
.
Println
(
"tcp read message error: "
,
err
)
break
break
}
}
...
...
ygopro.proto
View file @
dba084d0
...
@@ -4,7 +4,6 @@ package ygopro;
...
@@ -4,7 +4,6 @@ package ygopro;
option
go_package
=
"DarkNeos/ygopropb"
;
option
go_package
=
"DarkNeos/ygopropb"
;
message
YgoCtosMsg
{
message
YgoCtosMsg
{
int32
proto
=
1
;
oneof
msg
{
oneof
msg
{
CtosPlayerInfo
ctos_player_info
=
2
;
CtosPlayerInfo
ctos_player_info
=
2
;
CtosJoinGame
ctos_join_game
=
3
;
CtosJoinGame
ctos_join_game
=
3
;
...
...
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