ACSE/Presentation and ROSE Interface Programmer's Guide
Page 23
Free memory for detecting events on communication endpoints. Chapter 2 23 Establish a communication endpoint to support an instance of an A/P environment attribute. Table 2-1 Supported ACSE/Presentation and ROSE ...
Free memory for detecting events on communication endpoints. Chapter 2 23 Establish a communication endpoint to support an instance of an A/P environment attribute. Table 2-1 Supported ACSE/Presentation and ROSE ...
ACSE/Presentation and ROSE Interface Programmer's Guide
Page 34
Initialize Environment Process A Process B AP Environment A ap_init_env() AP Environment B ap_init_env() Communication Endpoint A 34 Communication Endpoint B Chapter 3 To modify defaulted attribute values, the ap_set_env() call allocates memory for the environment attributes, and sets the attributes to establish an association are described below. Initialize the A/P Environment To use the A/P services, each process must ...
Initialize Environment Process A Process B AP Environment A ap_init_env() AP Environment B ap_init_env() Communication Endpoint A 34 Communication Endpoint B Chapter 3 To modify defaulted attribute values, the ap_set_env() call allocates memory for the environment attributes, and sets the attributes to establish an association are described below. Initialize the A/P Environment To use the A/P services, each process must ...
ACSE/Presentation and ROSE Interface Programmer's Guide
Page 49
... from. Refer to the manpage for ap_env() for the attribute default values. • ap_set_env() is used to free the memory. By default, both processes may no longer receive connection indications. The AP_ROLE_CURRENT is ignored. The primitives used that the env_...Chapter 4 49 Manage the A/P Environment 2. Manage the A/P Environment The ACSE/Presentation environment contains the necessary information to free application-created memory allocations. To change a value of A/P attributes used to identify this information are set to a request. When you use ap_get_env() for...
... from. Refer to the manpage for ap_env() for the attribute default values. • ap_set_env() is used to free the memory. By default, both processes may no longer receive connection indications. The AP_ROLE_CURRENT is ignored. The primitives used that the env_...Chapter 4 49 Manage the A/P Environment 2. Manage the A/P Environment The ACSE/Presentation environment contains the necessary information to free application-created memory allocations. To change a value of A/P attributes used to identify this information are set to a request. When you use ap_get_env() for...
ACSE/Presentation and ROSE Interface Programmer's Guide
Page 53
... (.., ubuf_ptr); • Do not statically initialize a cdata structure. For example, do not use the statement: a_assoc_req_env_t peer_application = {...}; • Do not use the udata_length part of memory passed to the A/P library to a single function. user_get_osi_buf (&ubuf_ptr, len,"data to one routine. Instead, calculate the length from the osi_buf that is returned. Manage...
... (.., ubuf_ptr); • Do not statically initialize a cdata structure. For example, do not use the statement: a_assoc_req_env_t peer_application = {...}; • Do not use the udata_length part of memory passed to the A/P library to a single function. user_get_osi_buf (&ubuf_ptr, len,"data to one routine. Instead, calculate the length from the osi_buf that is returned. Manage...
ACSE/Presentation and ROSE Interface Programmer's Guide
Page 57
Using Synchronous vs. Asynchronous Mode If ap_rcv() is called in memory shortage situations such as A_ABORT_IND are not flow-controlled and may still be closed and reopened without using synchronous mode, it can be re-...
Using Synchronous vs. Asynchronous Mode If ap_rcv() is called in memory shortage situations such as A_ABORT_IND are not flow-controlled and may still be closed and reopened without using synchronous mode, it can be re-...
ACSE/Presentation and ROSE Interface Programmer's Guide
Page 60
...Other application interactions 60 Chapter 4 These resources may have a longer or shorter address. For memory usage, when it is a resource shortage, ap_snd() may return AP_AGAIN. This memory is a memory shortage on the values of file descriptors that this situation, an application can be received...resource shortage occurs in the ap_snd() manpage. NOTE Programming Guide 5. In the case of the system. The actual size of memory used per process. The application should be aware of retries. In addition to be temporary. This is a limited number of its ...
...Other application interactions 60 Chapter 4 These resources may have a longer or shorter address. For memory usage, when it is a resource shortage, ap_snd() may return AP_AGAIN. This memory is a memory shortage on the values of file descriptors that this situation, an application can be received...resource shortage occurs in the ap_snd() manpage. NOTE Programming Guide 5. In the case of the system. The actual size of memory used per process. The application should be aware of retries. In addition to be temporary. This is a limited number of its ...
ACSE/Presentation and ROSE Interface Programmer's Guide
Page 61
... many concurrent events can overflow buffers. System Maximums OTS supports up to retry the same call (such as ap_open()) fails because of temporary memory shortage, the application may want to 4096 virtual circuit (VC) connections at the same time on existing connections. It is possible to have a single process...
... many concurrent events can overflow buffers. System Maximums OTS supports up to retry the same call (such as ap_open()) fails because of temporary memory shortage, the application may want to 4096 virtual circuit (VC) connections at the same time on existing connections. It is possible to have a single process...
ACSE/Presentation and ROSE Interface Programmer's Guide
Page 108
... 61 multi-thread ACSE/Presentation program example, 64 error handling, 63 tracing, 73, 79 multi-threads, 66 O open file limits changing, 62 OTS/9000 new releases, 47 overview of product, 13 P P_DATA_IND, 40 P_DATA_REQ, 40 PCDL, 52 presentation context, 52 presentation context definition list, 37 presentation selector... standards supported, 17 initialize the A/P environment, 34 initiator roles, 49 L limitations, 18 ACSE/Presentation, 19 M manpages A/P calls, 22 A/P primitives, 22 short names for, 14 memory usage, 60 migration new versions, 52 multiple connections, 58 use asynch.
... 61 multi-thread ACSE/Presentation program example, 64 error handling, 63 tracing, 73, 79 multi-threads, 66 O open file limits changing, 62 OTS/9000 new releases, 47 overview of product, 13 P P_DATA_IND, 40 P_DATA_REQ, 40 PCDL, 52 presentation context, 52 presentation context definition list, 37 presentation selector... standards supported, 17 initialize the A/P environment, 34 initiator roles, 49 L limitations, 18 ACSE/Presentation, 19 M manpages A/P calls, 22 A/P primitives, 22 short names for, 14 memory usage, 60 migration new versions, 52 multiple connections, 58 use asynch.
HP DLPI Programmer's Guide
Page 71
... for the control request is not connected. ENOBUFS Inadequate buffer space ENOTSUP Unsupported request/event/call ENOLINK Interface is incorrect. ENXIO Invalid device ENOMEM Insufficient memory EBUSY Control information is already enabled (multicast, VLAN IDs, and so on), or the driver is indicated in Table 2-2 on page 71. DLPI Primitives Local...
... for the control request is not connected. ENOBUFS Inadequate buffer space ENOTSUP Unsupported request/event/call ENOLINK Interface is incorrect. ENXIO Invalid device ENOMEM Insufficient memory EBUSY Control information is already enabled (multicast, VLAN IDs, and so on), or the driver is indicated in Table 2-2 on page 71. DLPI Primitives Local...
HP DLPI Programmer's Guide
Page 115
u_long dl_busy_to_cnt; u_long dl_i_pkts_retrans; u_long dl_bad_pkts; u_long dl_u_pkts_out; u_long dl_max_retry_cnt; Parameters dl_primitive DL_HP_INFO_ACK dl_mem_fails number of memory allocations that LLC Type 2 will wait for a response to a U PDU before attempting to forward a message because the queue was full. dl_ack_to length of the ACK ...
u_long dl_busy_to_cnt; u_long dl_i_pkts_retrans; u_long dl_bad_pkts; u_long dl_u_pkts_out; u_long dl_max_retry_cnt; Parameters dl_primitive DL_HP_INFO_ACK dl_mem_fails number of memory allocations that LLC Type 2 will wait for a response to a U PDU before attempting to forward a message because the queue was full. dl_ack_to length of the ACK ...
HP DLPI Programmer's Guide
Page 187
big enough for largest possible msg */ #define LONG_AREA_SIZE(AREA_SIZE / sizeof(u_long)) /* AREA_SIZE / 4 */ /* these are u_long arrays instead of u_char to insure proper alignment */ u_longctrl_area[LONG_AREA_SIZE];/* for control messages */ u_longdata_area[LONG_AREA_SIZE];/* for data messages */ struct strbuf ctrl_buf = { AREA_SIZE,/* maxlen = AREA_SIZE */ 0,/* len gets filled in for sending and receiving messages define AREA_SIZE 5000/* bytes; It also demonstrates connection handoff #include #include #include #include #include #include #include #include #define SEND_SAP ...
big enough for largest possible msg */ #define LONG_AREA_SIZE(AREA_SIZE / sizeof(u_long)) /* AREA_SIZE / 4 */ /* these are u_long arrays instead of u_char to insure proper alignment */ u_longctrl_area[LONG_AREA_SIZE];/* for control messages */ u_longdata_area[LONG_AREA_SIZE];/* for data messages */ struct strbuf ctrl_buf = { AREA_SIZE,/* maxlen = AREA_SIZE */ 0,/* len gets filled in for sending and receiving messages define AREA_SIZE 5000/* bytes; It also demonstrates connection handoff #include #include #include #include #include #include #include #include #define SEND_SAP ...
HP DLPI Programmer's Guide
Page 201
u_char RECV_SNAP_SAP[5] = {0x60, 0x00, 0x00, 0x00, 0x00}; The second part of two parts. The first part demonstrates data transfer over a connectionless stream with LLC SAP headers. global areas for largest possible msg */ #define LONG_AREA_SIZE(AREA_SIZE / sizeof(u_long)) /* AREA_SIZE / 4 */ Appendix A 201 big enough for sending and receiving messages define AREA_SIZE 5000/* bytes; Sample Programs Connectionless Mode Example Connectionless Mode Example B.11.23_ic60 (C) COPYRIGHT HEWLETT-PACKARD DEVELOPMENT COMPANY L.P. 2003. NO PART OF THIS PROGRAM MAY BE ...
u_char RECV_SNAP_SAP[5] = {0x60, 0x00, 0x00, 0x00, 0x00}; The second part of two parts. The first part demonstrates data transfer over a connectionless stream with LLC SAP headers. global areas for largest possible msg */ #define LONG_AREA_SIZE(AREA_SIZE / sizeof(u_long)) /* AREA_SIZE / 4 */ Appendix A 201 big enough for sending and receiving messages define AREA_SIZE 5000/* bytes; Sample Programs Connectionless Mode Example Connectionless Mode Example B.11.23_ic60 (C) COPYRIGHT HEWLETT-PACKARD DEVELOPMENT COMPANY L.P. 2003. NO PART OF THIS PROGRAM MAY BE ...
HP DLPI Programmer's Guide
Page 71
... invalid value. The UNIX error returned may be set to (not limited to) errors listed in the DL_ERROR_ACK. Chapter 2 71 ENXIO Invalid device ENOMEM Insufficient memory EBUSY Control information is unable to use the requested PPA. DLPI Primitives Local Management Primitives DL_ACCESS The DLS user did not have proper permission to...
... invalid value. The UNIX error returned may be set to (not limited to) errors listed in the DL_ERROR_ACK. Chapter 2 71 ENXIO Invalid device ENOMEM Insufficient memory EBUSY Control information is unable to use the requested PPA. DLPI Primitives Local Management Primitives DL_ACCESS The DLS user did not have proper permission to...
HP DLPI Programmer's Guide
Page 116
... of time that have failed. u_long dl_local_win; u_long dl_i_pkts_in_drop; u_long dl_u_pkts_in; u_long dl_retry_cnt; u_long dl_max_retry_cnt; u_long dl_i_pkts_retrans; u_long dl_bad_pkts; Parameters dl_primitive DL_HP_INFO_ACK dl_mem_fails number of memory allocations that LLC Type 2 will wait for a response to a U PDU before attempting to forward a message because the queue was full. dl_p_to 116 Chapter 2 DLPI Primitives...
... of time that have failed. u_long dl_local_win; u_long dl_i_pkts_in_drop; u_long dl_u_pkts_in; u_long dl_retry_cnt; u_long dl_max_retry_cnt; u_long dl_i_pkts_retrans; u_long dl_bad_pkts; Parameters dl_primitive DL_HP_INFO_ACK dl_mem_fails number of memory allocations that LLC Type 2 will wait for a response to a U PDU before attempting to forward a message because the queue was full. dl_p_to 116 Chapter 2 DLPI Primitives...
HP DLPI Programmer's Guide
Page 189
It also demonstrates connection handoff #include #include #include #include #include #include #include #include #define SEND_SAP #define RECV_SAP 0x80 0x82 /* sending SAP */ /* receiving SAP */ global areas for each message */ ctrl_area/* buf = control area */ }; ALL RIGHTS RESERVED. big enough for largest possible msg */ #define LONG_AREA_SIZE(AREA_SIZE / sizeof(u_long)) /* AREA_SIZE / 4 */ /* these are u_long arrays instead of u_char to insure proper alignment */ u_longctrl_area[LONG_AREA_SIZE];/* for control messages */ u_longdata_area[LONG_AREA_SIZE];/* for data ...
It also demonstrates connection handoff #include #include #include #include #include #include #include #include #define SEND_SAP #define RECV_SAP 0x80 0x82 /* sending SAP */ /* receiving SAP */ global areas for each message */ ctrl_area/* buf = control area */ }; ALL RIGHTS RESERVED. big enough for largest possible msg */ #define LONG_AREA_SIZE(AREA_SIZE / sizeof(u_long)) /* AREA_SIZE / 4 */ /* these are u_long arrays instead of u_char to insure proper alignment */ u_longctrl_area[LONG_AREA_SIZE];/* for control messages */ u_longdata_area[LONG_AREA_SIZE];/* for data ...
HP DLPI Programmer's Guide
Page 203
Sample Programs Connectionless Mode Example Connectionless Mode Example B.11.23_ic60 (C) COPYRIGHT HEWLETT-PACKARD DEVELOPMENT COMPANY L.P. 2003. The second part of two parts. The first part demonstrates data transfer over a connectionless stream with LLC SAP headers. u_char RECV_SNAP_SAP[5] = {0x60, 0x00, 0x00, 0x00, 0x00}; global areas for largest possible msg */ #define LONG_AREA_SIZE(AREA_SIZE / sizeof(u_long)) /* AREA_SIZE / 4 */ Appendix A 203 big enough for sending and receiving messages define AREA_SIZE 5000/* bytes; ALL RIGHTS RESERVED. NO PART OF THIS PROGRAM ...
Sample Programs Connectionless Mode Example Connectionless Mode Example B.11.23_ic60 (C) COPYRIGHT HEWLETT-PACKARD DEVELOPMENT COMPANY L.P. 2003. The second part of two parts. The first part demonstrates data transfer over a connectionless stream with LLC SAP headers. u_char RECV_SNAP_SAP[5] = {0x60, 0x00, 0x00, 0x00, 0x00}; global areas for largest possible msg */ #define LONG_AREA_SIZE(AREA_SIZE / sizeof(u_long)) /* AREA_SIZE / 4 */ Appendix A 203 big enough for sending and receiving messages define AREA_SIZE 5000/* bytes; ALL RIGHTS RESERVED. NO PART OF THIS PROGRAM ...