projects
/
silc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added SILC Server library.
[silc.git]
/
lib
/
silcutil
/
os2
/
silcos2sockconn.c
diff --git
a/lib/silcutil/os2/silcos2sockconn.c
b/lib/silcutil/os2/silcos2sockconn.c
index 7d2f9f8e1b8468de90caabf68945e28b32b53b71..d551c0b7cf159650a0bc0ac8404fb10ae8527807 100644
(file)
--- a/
lib/silcutil/os2/silcos2sockconn.c
+++ b/
lib/silcutil/os2/silcos2sockconn.c
@@
-20,7
+20,7
@@
/* XXX TODO */
/* XXX TODO */
-#include "silc
includes
.h"
+#include "silc.h"
/* Writes data from encrypted buffer to the socket connection. If the
data cannot be written at once, it will be written later with a timeout.
/* Writes data from encrypted buffer to the socket connection. If the
data cannot be written at once, it will be written later with a timeout.
@@
-50,6
+50,13
@@
int silc_socket_write(SilcSocketConnection sock)
return -1;
}
return -1;
}
+ if (ret < src->len) {
+ SILC_LOG_DEBUG(("Wrote data %d of %d bytes, will write rest later",
+ ret, src->len));
+ silc_buffer_pull(src, ret);
+ return -2;
+ }
+
silc_buffer_pull(src, ret);
}
silc_buffer_pull(src, ret);
}
@@
-107,8
+114,8
@@
int silc_socket_read(SilcSocketConnection sock)
/* Returns human readable socket error message */
/* Returns human readable socket error message */
-
b
ool silc_socket_get_error(SilcSocketConnection sock, char *error,
-
ui
nt32 error_len)
+
SilcB
ool silc_socket_get_error(SilcSocketConnection sock, char *error,
+
SilcUI
nt32 error_len)
{
/* XXX TODO */
return FALSE;
{
/* XXX TODO */
return FALSE;