Games-FrozenBubble
view release on metacpan or search on metacpan
server/net.c_tmp view on Meta::CPAN
while (1) {
if (!(eol = strchr(ptr, '\n'))) {
// the bad bad guy sent a 0 byte before the \n
if (!prio)
send_line_log_push(fd, fl_client_nulbyte);
conn_terminated(fd, "NUL byte before newline");
return;
}
if (prio) {
// prio e.g. in game; we split messages because p and ! must be treated specially (see game::process_msg_prio)
process_msg_prio(fd, ptr, eol - ptr + 1);
len -= eol - ptr + 1;
if (len == 0) {
prio_processed = 1;
break;
}
ptr = eol + 1;
} else {
eol[0] = '\0';
( run in 0.450 second using v1.01-cache-2.11-cpan-71847e10f99 )