| 2408 | } |
| 2409 | |
| 2410 | static int send_full( rem_port* port, PACKET * packet) |
| 2411 | { |
| 2412 | /************************************** |
| 2413 | * |
| 2414 | * s e n d _ f u l l |
| 2415 | * |
| 2416 | ************************************** |
| 2417 | * |
| 2418 | * Functional description |
| 2419 | * Send a packet across a port to another process. |
| 2420 | * |
| 2421 | **************************************/ |
| 2422 | |
| 2423 | if (!xdr_protocol(port->port_send, packet)) |
| 2424 | return false; |
| 2425 | |
| 2426 | #ifdef DEBUG |
| 2427 | { // scope |
| 2428 | static ULONG op_sent_count = 0; |
| 2429 | op_sent_count++; |
| 2430 | if (INET_trace & TRACE_operations) |
| 2431 | { |
| 2432 | fprintf(stdout, "%05u: OP Sent %5u opcode %d\n", inet_debug_timer(), |
| 2433 | op_sent_count, packet->p_operation); |
| 2434 | fflush(stdout); |
| 2435 | } |
| 2436 | } // end scope |
| 2437 | #endif |
| 2438 | |
| 2439 | return REMOTE_deflate(port->port_send, inet_write, packet_send, true); |
| 2440 | } |
| 2441 | |
| 2442 | static int send_partial( rem_port* port, PACKET * packet) |
| 2443 | { |
no test coverage detected