Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mtproto_proxy
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
Administrator
mtproto_proxy
Commits
32e1dc91
Commit
32e1dc91
authored
Jun 25, 2018
by
Sergey Prokhorov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove internal dbg macroses
parent
c0420204
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
3 deletions
+0
-3
mtp_intermediate.erl
src/mtp_intermediate.erl
+0
-3
No files found.
src/mtp_intermediate.erl
View file @
32e1dc91
...
...
@@ -19,7 +19,6 @@
-
define
(
MAX_PACKET_SIZE
,
1
*
1024
*
1024
).
% 1mb
-
define
(
APP
,
mtproto_proxy
).
-
define
(
MAX_SIZE
,
16#80000000
).
-
include
(
"dbg.hrl"
).
-
opaque
codec
()
::
#int_st
{}.
...
...
@@ -49,7 +48,6 @@ try_decode_packet(Bin, #int_st{buffer = <<>>} = St) ->
try_decode_packet_len
(
Len
,
Data
,
St
)
->
case
Data
of
<<
_:
4
/
binary
,
Packet
:
Len
/
binary
,
Rest
/
binary
>>
->
?
DBG
(
"len=
~p
~w
->
~w
"
,
[
Len
,
Data
,
Packet
]),
{
ok
,
Packet
,
St
#int_st
{
buffer
=
Rest
}};
_
->
{
incomplete
,
St
#int_st
{
buffer
=
Data
}}
...
...
@@ -59,5 +57,4 @@ try_decode_packet_len(Len, Data, St) ->
encode_packet
(
Data
,
St
)
->
Size
=
iolist_size
(
Data
),
Packet
=
[
<<
Size
:
32
/
little
>>
|
Data
],
?
DBG
(
"
~w
->
~w
"
,
[
iolist_to_binary
(
Data
),
iolist_to_binary
(
Packet
)]),
{
Packet
,
St
}.
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