001    package dk.i1.sctp;
002    
003    public class sctp_event_subscribe {
004            /**Receive sctp_sndrcvinfo per chunk.
005             *You definetely want this on a OneToManySCTPSocket.
006             */
007            public boolean sctp_data_io_event;
008            /**Receive association change notifications.
009             *You probably want this on a OneToManySCTPSocket.
010             *This results in 
011             *{@link SCTPNotificationAssociationChangeCommUp},
012             *{@link SCTPNotificationAssociationChangeCommLost},
013             *{@link SCTPNotificationAssociationChangeRestart},
014             *{@link SCTPNotificationAssociationChangeShutdownComplete} and
015             *{@link SCTPNotificationAssociationChangeCantStartAssociation}
016             *events being generated.
017             */
018            public boolean sctp_association_event;
019            /**Receive {@link SCTPNotificationPeerAddressChange} events.*/
020            public boolean sctp_address_event;
021            /**Receive {@link SCTPNotificationSendFailed} events.
022             * You probably want this enable if you can use the fact that the remote peer probably did not receive an in-flight message. (you probably also need to use {@link sctp_sndrcvinfo#sinfo_context})
023             */
024            public boolean sctp_send_failure_event;
025            public boolean sctp_peer_error_event;
026            public boolean sctp_shutdown_event;
027            public boolean sctp_partial_delivery_event;
028            public boolean sctp_adaptation_layer_event;
029            //boolean sctp_authentication_event;
030            public sctp_event_subscribe() {
031                    sctp_data_io_event = false;
032                    sctp_association_event = false;
033                    sctp_address_event = false;
034                    sctp_send_failure_event = false;
035                    sctp_peer_error_event = false;
036                    sctp_shutdown_event = false;
037                    sctp_partial_delivery_event = false;
038                    sctp_adaptation_layer_event = false;
039                    //sctp_authentication_event = false;
040            }
041    }