mirror of
https://github.com/yarrick/iodine.git
synced 2024-11-22 16:19:20 +02:00
Return number of bytes written
This commit is contained in:
parent
77ec951b01
commit
d2df0f69c1
|
@ -7,7 +7,7 @@ iodine - IP over DNS is now easy
|
||||||
|
|
||||||
CHANGES:
|
CHANGES:
|
||||||
|
|
||||||
xxxx-xx-xx: 0.4
|
xxxx-xx-xx: 0.3.2
|
||||||
- New encoding, 25% more peak upstream throughput
|
- New encoding, 25% more peak upstream throughput
|
||||||
- New -l option to set local ip to listen to on server
|
- New -l option to set local ip to listen to on server
|
||||||
|
|
||||||
|
|
4
read.c
4
read.c
|
@ -86,7 +86,7 @@ int
|
||||||
readdata(char *packet, char **src, char *dst, size_t len)
|
readdata(char *packet, char **src, char *dst, size_t len)
|
||||||
{
|
{
|
||||||
if (len < 0)
|
if (len < 0)
|
||||||
return len;
|
return 0;
|
||||||
|
|
||||||
memcpy(dst, *src, len);
|
memcpy(dst, *src, len);
|
||||||
|
|
||||||
|
@ -138,7 +138,7 @@ int
|
||||||
putdata(char **dst, char *data, size_t len)
|
putdata(char **dst, char *data, size_t len)
|
||||||
{
|
{
|
||||||
if (len < 0)
|
if (len < 0)
|
||||||
return len;
|
return 0;
|
||||||
|
|
||||||
memcpy(*dst, data, len);
|
memcpy(*dst, data, len);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue