Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ul] Fix docs in ClientAssociation #484

Merged
merged 1 commit into from
Mar 22, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions ul/src/association/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -546,12 +546,7 @@ impl ClientAssociation {
let _ = self.socket.shutdown(std::net::Shutdown::Both);
out
}

/// Release implementation function,
/// which tries to send a release request and receive a release response.
/// This is in a separate private function because
/// terminating a connection should still close the connection
/// if the exchange fails.

/// Send an abort message and shut down the TCP connection,
/// terminating the association.
pub fn abort(mut self) -> Result<()> {
Expand Down Expand Up @@ -598,6 +593,11 @@ impl ClientAssociation {
PDataReader::new(&mut self.socket, self.requestor_max_pdu_length)
}

/// Release implementation function,
/// which tries to send a release request and receive a release response.
/// This is in a separate private function because
/// terminating a connection should still close the connection
/// if the exchange fails.
fn release_impl(&mut self) -> Result<()> {
let pdu = Pdu::ReleaseRQ;
self.send(&pdu)?;
Expand Down
Loading