Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
L
libvncserver
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
rasky
libvncserver
Commits
e70c3be7
Commit
e70c3be7
authored
Jun 15, 2004
by
dscho
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
debug
parent
6bda09f0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
1 deletion
+17
-1
sockets.c
libvncclient/sockets.c
+17
-1
No files found.
libvncclient/sockets.c
View file @
e70c3be7
...
...
@@ -58,10 +58,19 @@ static int buffered = 0;
rfbBool
ReadFromRFBServer
(
rfbClient
*
client
,
char
*
out
,
unsigned
int
n
)
{
//#define DEBUG_READ_EXACT
#ifdef DEBUG_READ_EXACT
char
*
oout
=
out
;
int
nn
=
n
;
rfbClientLog
(
"ReadFromRFBServer %d bytes
\n
"
,
n
);
#endif
if
(
n
<=
buffered
)
{
memcpy
(
out
,
bufoutptr
,
n
);
bufoutptr
+=
n
;
buffered
-=
n
;
#ifdef DEBUG_READ_EXACT
goto
hexdump
;
#endif
return
TRUE
;
}
...
...
@@ -101,7 +110,6 @@ ReadFromRFBServer(rfbClient* client, char *out, unsigned int n)
memcpy
(
out
,
bufoutptr
,
n
);
bufoutptr
+=
n
;
buffered
-=
n
;
return
TRUE
;
}
else
{
...
...
@@ -129,6 +137,14 @@ ReadFromRFBServer(rfbClient* client, char *out, unsigned int n)
n
-=
i
;
}
#ifdef DEBUG_READ_EXACT
hexdump:
{
int
ii
;
for
(
ii
=
0
;
ii
<
nn
;
ii
++
)
fprintf
(
stderr
,
"%02x "
,(
unsigned
char
)
oout
[
ii
]);
fprintf
(
stderr
,
"
\n
"
);
}
#endif
return
TRUE
;
}
}
...
...
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