| 2470 | |
| 2471 | |
| 2472 | RemoteXdr* xdrinet_create(rem_port* port, UCHAR* buffer, USHORT length, enum xdr_op x_op) |
| 2473 | { |
| 2474 | /************************************** |
| 2475 | * |
| 2476 | * x d r i n e t _ c r e a t e |
| 2477 | * |
| 2478 | ************************************** |
| 2479 | * |
| 2480 | * Functional description |
| 2481 | * Initialize an XDR stream. |
| 2482 | * |
| 2483 | **************************************/ |
| 2484 | |
| 2485 | RemoteXdr* xdrs = FB_NEW InetXdr; |
| 2486 | |
| 2487 | xdrs->x_public = port; |
| 2488 | xdrs->create(reinterpret_cast<SCHAR*>(buffer), length, x_op); |
| 2489 | |
| 2490 | return xdrs; |
| 2491 | } |
| 2492 | |
| 2493 | #ifdef HAVE_SETITIMER |
| 2494 | static void alarm_handler( int x) |