ACSE/Presentation and ROSE Interface Programmer's Guide
Page 23
... A/P environment. Initialize the A/P environment. Provides an interface for the A/P data structures. Establish a communication endpoint to support an instance of an A/P environment attribute. Chapter 2 23 Free memory for detecting events on communication endpoints. ACSE/Presentation Calls A/P Call ap_close() ap_error() ap_free() ap_get_env() ap_init_env() ap_open() ap_poll() Description Release a communication endpoint. Table 2-1 Supported ACSE/Presentation...
... A/P environment. Initialize the A/P environment. Provides an interface for the A/P data structures. Establish a communication endpoint to support an instance of an A/P environment attribute. Chapter 2 23 Free memory for detecting events on communication endpoints. ACSE/Presentation Calls A/P Call ap_close() ap_error() ap_free() ap_get_env() ap_init_env() ap_open() ap_poll() Description Release a communication endpoint. Table 2-1 Supported ACSE/Presentation...
ACSE/Presentation and ROSE Interface Programmer's Guide
Page 34
... Association The steps to default values. (See the AP_ENV Table of Attributes in the following steps. 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.
... Association The steps to default values. (See the AP_ENV Table of Attributes in the following steps. 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.
ACSE/Presentation and ROSE Interface Programmer's Guide
Page 49
... AP_PCDL, AP_PCDRL, and AP_LCL_PADDR. Determine Initiator and Responder Roles When you . When you use ap_free() to free application-created memory allocations. A partial list of the attributes. Chapter 4 49 When you must use ap_get_env() for you create your programs, decide... change a list of attributes, you have finished using the AP_ROLE_ALLOWED environment attribute. Note that require allocating and deallocating memory are stored as the initiator and may initiate and respond to AP_INITIATOR. The AP_ROLE_CURRENT is ignored. Manage the A/P Environment 2....
... AP_PCDL, AP_PCDRL, and AP_LCL_PADDR. Determine Initiator and Responder Roles When you . When you use ap_free() to free application-created memory allocations. A partial list of the attributes. Chapter 4 49 When you must use ap_get_env() for you create your programs, decide... change a list of attributes, you have finished using the AP_ROLE_ALLOWED environment attribute. Note that require allocating and deallocating memory are stored as the initiator and may initiate and respond to AP_INITIATOR. The AP_ROLE_CURRENT is ignored. Manage the A/P Environment 2....
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. For example: void *ubuf_ptr; Manage the A/P Environment • Isolate the allocations and freeing of the cdata parameter for...
... (.., 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. For example: void *ubuf_ptr; Manage the A/P Environment • Isolate the allocations and freeing of the cdata parameter for...
ACSE/Presentation and ROSE Interface Programmer's Guide
Page 57
... 4 57 Programming Guide 4. In the second case, the AP_MORE bit is lost. To receive the rest of ap_rcv(). Asynchronous Mode If ap_rcv() is called in memory shortage situations such as A_ABORT_IND are not flow-controlled and may still be changed to AP_AGAIN. In this case, the remaining data of the...
... 4 57 Programming Guide 4. In the second case, the AP_MORE bit is lost. To receive the rest of ap_rcv(). Asynchronous Mode If ap_rcv() is called in memory shortage situations such as A_ABORT_IND are not flow-controlled and may still be changed to AP_AGAIN. In this case, the remaining data of the...
ACSE/Presentation and ROSE Interface Programmer's Guide
Page 60
... request (A_ASSOC_REQ), if a resource shortage occurs in the OTS stack, a reject may occur if there is consumed by the dynamic memory allocation scheme in mind that can implement a connection retry mechanism to keep track of the number of its environment attributes. Since A/P uses...to create a communication endpoint and each layer including the presentation, session, and transport layers. For an application with a large number of memory in the ap_snd() manpage. In the case of the system. Resource Constraints Each connection will take up about 540 bytes. In addition...
... request (A_ASSOC_REQ), if a resource shortage occurs in the OTS stack, a reject may occur if there is consumed by the dynamic memory allocation scheme in mind that can implement a connection retry mechanism to keep track of the number of its environment attributes. Since A/P uses...to create a communication endpoint and each layer including the presentation, session, and transport layers. For an application with a large number of memory in the ap_snd() manpage. In the case of the system. Resource Constraints Each connection will take up about 540 bytes. In addition...
ACSE/Presentation and ROSE Interface Programmer's Guide
Page 61
... has no priority for timing errors. • Check if the number of connections. Under these circumstances, observe the following restrictions: • A low rate of temporary memory shortage, the application may be further limited by HPUX. Too many concurrent events can overflow buffers. If XTI API applications are also in...
... has no priority for timing errors. • Check if the number of connections. Under these circumstances, observe the following restrictions: • A low rate of temporary memory shortage, the application may be further limited by HPUX. Too many concurrent events can overflow buffers. If XTI API applications are also in...
ACSE/Presentation and ROSE Interface Programmer's Guide
Page 108
... I implementation 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. Index E EINTR, 62 enable API tracing, 71, 77 encoding data, 55 endpoints binding, 35...
... I implementation 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. Index E EINTR, 62 enable API tracing, 71, 77 encoding data, 55 endpoints binding, 35...
HP DLPI Programmer's Guide
Page 71
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. EINVAL One of ...
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. EINVAL One of ...
HP DLPI Programmer's Guide
Page 115
... DL_HP_INFO_ACK dl_mem_fails number of times that have failed. u_long dl_s_pkts_out; u_long dl_u_pkts_in; u_long dl_u_pkts_out; u_long dl_max_retry_cnt; u_long dl_remote_win; u_long dl_i_pkts_out; u_long dl_retry_cnt; dl_queue_fails number of memory allocations that the DLS provider was unable to force a response. u_long dl_bad_pkts; u_long dl_i_pkts_retrans; u_long dl_remote_busy_cnt; u_long dl_max_retries; dl_ack_to length of the ACK timeout in...
... DL_HP_INFO_ACK dl_mem_fails number of times that have failed. u_long dl_s_pkts_out; u_long dl_u_pkts_in; u_long dl_u_pkts_out; u_long dl_max_retry_cnt; u_long dl_remote_win; u_long dl_i_pkts_out; u_long dl_retry_cnt; dl_queue_fails number of memory allocations that the DLS provider was unable to force a response. u_long dl_bad_pkts; u_long dl_i_pkts_retrans; u_long dl_remote_busy_cnt; u_long dl_max_retries; dl_ack_to length of the ACK timeout in...
HP DLPI Programmer's Guide
Page 187
ALL RIGHTS RESERVED. NO PART OF THIS PROGRAM MAY BE PHOTOCOPIED, REPRODUCED, OR TRANSLATED TO ANOTHER PROGRAM LANGUAGE WITHOUT THE PRIOR WRITTEN CONSENT OF HEWLETT PACKARD COMPANY This program demonstrates data transfer over a connection oriented DLPI stream. Sample Programs Connection Mode Example Connection Mode Example B.11.23_ic60 (C) COPYRIGHT HEWLETT-PACKARD DEVELOPMENT COMPANY L.P. 2003. 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 */ ...
ALL RIGHTS RESERVED. NO PART OF THIS PROGRAM MAY BE PHOTOCOPIED, REPRODUCED, OR TRANSLATED TO ANOTHER PROGRAM LANGUAGE WITHOUT THE PRIOR WRITTEN CONSENT OF HEWLETT PACKARD COMPANY This program demonstrates data transfer over a connection oriented DLPI stream. Sample Programs Connection Mode Example Connection Mode Example B.11.23_ic60 (C) COPYRIGHT HEWLETT-PACKARD DEVELOPMENT COMPANY L.P. 2003. 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 */ ...
HP DLPI Programmer's Guide
Page 201
The second part of two parts. Sample Programs Connectionless Mode Example Connectionless Mode Example B.11.23_ic60 (C) COPYRIGHT HEWLETT-PACKARD DEVELOPMENT COMPANY L.P. 2003. The first part demonstrates data transfer over a connectionless stream with LLC SAP headers. big enough for sending and receiving messages define AREA_SIZE 5000/* bytes; ALL RIGHTS RESERVED. global areas for largest possible msg */ #define LONG_AREA_SIZE(AREA_SIZE / sizeof(u_long)) /* AREA_SIZE / 4 */ Appendix A 201 NO PART OF THIS PROGRAM MAY BE PHOTOCOPIED, REPRODUCED, OR TRANSLATED TO ANOTHER ...
The second part of two parts. Sample Programs Connectionless Mode Example Connectionless Mode Example B.11.23_ic60 (C) COPYRIGHT HEWLETT-PACKARD DEVELOPMENT COMPANY L.P. 2003. The first part demonstrates data transfer over a connectionless stream with LLC SAP headers. big enough for sending and receiving messages define AREA_SIZE 5000/* bytes; ALL RIGHTS RESERVED. global areas for largest possible msg */ #define LONG_AREA_SIZE(AREA_SIZE / sizeof(u_long)) /* AREA_SIZE / 4 */ Appendix A 201 NO PART OF THIS PROGRAM MAY BE PHOTOCOPIED, REPRODUCED, OR TRANSLATED TO ANOTHER ...
HP DLPI Programmer's Guide
Page 71
... invalid state. Chapter 2 71 The UNIX error returned may be set to (not limited to) errors listed in the DL_ERROR_ACK. ENXIO Invalid device ENOMEM Insufficient memory EBUSY Control information is unable to use the requested PPA. DL_SYSERR A system error has occurred and the UNIX system error is indicated in Table 2-2 on...
... invalid state. Chapter 2 71 The UNIX error returned may be set to (not limited to) errors listed in the DL_ERROR_ACK. ENXIO Invalid device ENOMEM Insufficient memory EBUSY Control information is unable to use the requested PPA. DL_SYSERR A system error has occurred and the UNIX system error is indicated in Table 2-2 on...
HP DLPI Programmer's Guide
Page 116
... provider was full. dl_p_to 116 Chapter 2 u_long dl_s_pkts_in; u_long dl_i_pkts_in; u_long dl_i_pkts_out; u_long dl_retry_cnt; u_long dl_ack_thresh; dl_ack_to length of the ACK timeout in tenths of memory allocations that have failed. u_long dl_i_pkts_in_oos; u_long dl_i_pkts_retrans; u_long dl_s_pkts_out; u_long dl_bad_pkts; u_long dl_u_pkts_in; u_long dl_busy_to_cnt; u_long dl_u_pkts_out; Parameters dl_primitive DL_HP_INFO_ACK dl_mem_fails number of a second...
... provider was full. dl_p_to 116 Chapter 2 u_long dl_s_pkts_in; u_long dl_i_pkts_in; u_long dl_i_pkts_out; u_long dl_retry_cnt; u_long dl_ack_thresh; dl_ack_to length of the ACK timeout in tenths of memory allocations that have failed. u_long dl_i_pkts_in_oos; u_long dl_i_pkts_retrans; u_long dl_s_pkts_out; u_long dl_bad_pkts; u_long dl_u_pkts_in; u_long dl_busy_to_cnt; u_long dl_u_pkts_out; Parameters dl_primitive DL_HP_INFO_ACK dl_mem_fails number of a second...
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 */ }; Appendix A 189 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...
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 */ }; Appendix A 189 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...
HP DLPI Programmer's Guide
Page 203
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; The second part of two parts. The first part demonstrates data transfer over a connectionless stream with LLC SAP headers. Sample Programs Connectionless Mode Example Connectionless Mode Example B.11.23_ic60 (C) COPYRIGHT HEWLETT-PACKARD DEVELOPMENT COMPANY L.P. 2003. u_char RECV_SNAP_SAP[5] = {0x60, 0x00, 0x00, 0x00, 0x00}; ALL RIGHTS RESERVED. NO PART OF THIS ...
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; The second part of two parts. The first part demonstrates data transfer over a connectionless stream with LLC SAP headers. Sample Programs Connectionless Mode Example Connectionless Mode Example B.11.23_ic60 (C) COPYRIGHT HEWLETT-PACKARD DEVELOPMENT COMPANY L.P. 2003. u_char RECV_SNAP_SAP[5] = {0x60, 0x00, 0x00, 0x00, 0x00}; ALL RIGHTS RESERVED. NO PART OF THIS ...