home
·
contact
·
privacy
projects
/
plomrogue
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Server: In get_message_from_queue(), retry if 1st chunk starts with \0.
[plomrogue]
/
src
/
server
/
io.h
diff --git
a/src/server/io.h
b/src/server/io.h
index 2f8397fa2da941b8689b681a109e5593da10355b..5b67f6b21fb8b430f6e8dfbd87746c023f32391f 100644
(file)
--- a/
src/server/io.h
+++ b/
src/server/io.h
@@
-1,4
+1,8
@@
/* io.h
/* io.h
+ *
+ * This file is part of PlomRogue. PlomRogue is licensed under the GPL version 3
+ * or any later version. For details on its copyright, license, and warranties,
+ * see the file NOTICE in the root directory of the PlomRogue source package.
*
* Communication of the server with the outside world and its client via input,
* output and world state files.
*
* Communication of the server with the outside world and its client via input,
* output and world state files.
@@
-19,9
+23,9
@@
* Each such call cuts off bytes from the beginning of world.queue, up to and
* including the last \0 byte that is followed by a non-\0 byte or ends the
* queue. If the queue starts with a \0 byte, it and its \0 followers are cut
* Each such call cuts off bytes from the beginning of world.queue, up to and
* including the last \0 byte that is followed by a non-\0 byte or ends the
* queue. If the queue starts with a \0 byte, it and its \0 followers are cut
- *
and a NULL pointer is returned. Reading from the input file stops only when
- *
one or more byte were read and the next read returns 0 bytes. If the
- *
re-filled queue does not end in a \0 byte
, a \0 byte is appended to it.
+ *
before returning anything after them. Reading from the input file stops only
+ *
at its end or when one or more byte were read and the next read returns 0
+ *
bytes. If the re-filled queue doesn't end in \0
, a \0 byte is appended to it.
*/
extern char * io_round();
*/
extern char * io_round();