Skip to content
Merged
Show file tree
Hide file tree
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
2 changes: 2 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion findscu/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ fn main() {
enum Error {
/// Could not initialize SCU
InitScu {
source: dicom_ul::association::client::Error,
source: dicom_ul::association::Error,
},

/// Could not construct DICOM command
Expand Down
12 changes: 6 additions & 6 deletions scpproxy/src/main.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use bytes::BytesMut;
use clap::{crate_version, value_parser, Arg, ArgAction, Command};
use dicom_ul::association::client::get_client_pdu;
use dicom_ul::association::read_pdu_from_wire;
use dicom_ul::pdu::writer::write_pdu;
use dicom_ul::pdu::Pdu;
use snafu::{Backtrace, OptionExt, Report, ResultExt, Snafu, Whatever};
Expand Down Expand Up @@ -65,7 +65,7 @@ pub enum ThreadMessage {
},
ReadErr {
from: ProviderType,
err: dicom_ul::association::client::Error,
err: dicom_ul::association::Error,
},
WriteErr {
from: ProviderType,
Expand Down Expand Up @@ -99,7 +99,7 @@ fn run(
let message_tx = message_tx.clone();
scu_reader_thread = thread::spawn(move || {
loop {
match get_client_pdu(&mut reader, &mut buf, max_pdu_length, strict) {
match read_pdu_from_wire(&mut reader, &mut buf, max_pdu_length, strict) {
Ok(pdu) => {
message_tx
.send(ThreadMessage::SendPdu {
Expand All @@ -108,7 +108,7 @@ fn run(
})
.context(SendMessageSnafu)?;
}
Err(dicom_ul::association::client::Error::ConnectionClosed) => {
Err(dicom_ul::association::Error::ConnectionClosed) => {
message_tx
.send(ThreadMessage::Shutdown {
initiator: ProviderType::Scu,
Expand Down Expand Up @@ -137,7 +137,7 @@ fn run(
let mut buf = BytesMut::with_capacity(max_pdu_length as usize);
scp_reader_thread = thread::spawn(move || {
loop {
match get_client_pdu(&mut reader, &mut buf, max_pdu_length, strict) {
match read_pdu_from_wire(&mut reader, &mut buf, max_pdu_length, strict) {
Ok(pdu) => {
message_tx
.send(ThreadMessage::SendPdu {
Expand All @@ -146,7 +146,7 @@ fn run(
})
.context(SendMessageSnafu)?;
}
Err(dicom_ul::association::client::Error::ConnectionClosed) => {
Err(dicom_ul::association::Error::ConnectionClosed) => {
message_tx
.send(ThreadMessage::Shutdown {
initiator: ProviderType::Scp,
Expand Down
2 changes: 1 addition & 1 deletion storescp/src/store_async.rs
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ pub async fn run_store_async(
_ => {}
}
}
Err(err @ dicom_ul::association::server::Error::Receive { .. }) => {
Err(err @ dicom_ul::association::Error::ReceivePdu { .. }) => {
if verbose {
info!("{}", Report::from_error(err));
} else {
Expand Down
2 changes: 1 addition & 1 deletion storescp/src/store_sync.rs
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ pub fn run_store_sync(scu_stream: TcpStream, args: &App) -> Result<(), Whatever>
_ => {}
}
}
Err(err @ dicom_ul::association::server::Error::Receive { .. }) => {
Err(err @ dicom_ul::association::Error::ReceivePdu { .. }) => {
if verbose {
info!("{}", Report::from_error(err));
} else {
Expand Down
2 changes: 1 addition & 1 deletion storescu/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ struct DicomFile {
enum Error {
/// Could not initialize SCU
Scu {
source: Box<dicom_ul::association::client::Error>,
source: Box<dicom_ul::association::Error>,
},

/// Could not construct DICOM command
Expand Down
2 changes: 2 additions & 0 deletions ul/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ dicom-dictionary-std = { path = "../dictionary-std" }
matches = "0.1.8"
rstest = "0.25"
tokio = { version = "^1.38", features = ["io-util", "macros", "net", "rt", "rt-multi-thread"] }
dicom-core = { path = '../core' }
dicom-object = { path = '../object' }

[features]
async = ["dep:tokio"]
Expand Down
Loading
Loading