… | |
… | |
409 | */ |
409 | */ |
410 | void |
410 | void |
411 | client::send (void *buf_, int len) |
411 | client::send (void *buf_, int len) |
412 | { |
412 | { |
413 | char *buf = (char *)buf_; |
413 | char *buf = (char *)buf_; |
414 | char *pos = buf; |
|
|
415 | int amt = 0; |
|
|
416 | |
414 | |
417 | if (destroyed () || !buf) |
415 | if (destroyed () || !buf) |
418 | return; |
416 | return; |
419 | |
417 | |
420 | if (len + outputbuffer.len > SOCKETBUFSIZE) |
418 | if (len + outputbuffer.len > SOCKETBUFSIZE) |
… | |
… | |
504 | va_end (ap); |
502 | va_end (ap); |
505 | |
503 | |
506 | send_packet (sl); |
504 | send_packet (sl); |
507 | } |
505 | } |
508 | |
506 | |
|
|
507 | void |
|
|
508 | client::send_drawinfo (const char *msg, int flags) |
|
|
509 | { |
|
|
510 | send_packet_printf ("drawinfo %d %s", flags, msg); |
|
|
511 | } |
|
|
512 | |
509 | /*********************************************************************** |
513 | /*********************************************************************** |
510 | * |
514 | * |
511 | * packet functions/utilities |
515 | * packet functions/utilities |
512 | * |
516 | * |
513 | **********************************************************************/ |
517 | **********************************************************************/ |