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

example code: refactor the query output prints and the register hostname #189

Merged
merged 4 commits into from
Mar 26, 2024

Conversation

keepsimple1
Copy link
Owner

Now the query output is nicer to read:

$ cargo run --example query _printer._tcp 
<snip>
At 243.90251ms: Resolved a new service: Brother HL-L2390DW._printer._tcp.local.
 host: BRW485F99726515.local.
 port: 515
 Address: 192.168.0.111
 Address: fe80::4a5f:99ff:fe72:6515
 Property: txtvers=1
 Property: qtotal=1
 Property: pdl=application/octet-stream,image/urf,image/pwg-raster
 Property: rp=duerqxesz5090
 Property: note=
 Property: ty=Brother HL-L2390DW
 Property: product=(Brother HL-L2390DW)
 Property: adminurl=http://BRW485F99726515.local./
 Property: priority=50
 Property: usb_MFG=Brother
 Property: usb_MDL=HL-L2390DW
 Property: usb_CMD=PJL,HBP,URF
 Property: Color=F
 Property: Copies=T
 Property: Duplex=T
 Property: Fax=F
 Property: Scan=T
 Property: PaperCustom=T
 Property: Binary=T
 Property: Transparent=T
 Property: TBCP=F
 Property: UUID=e3248000-80ce-11db-8000-485f99726515

@keepsimple1 keepsimple1 merged commit c141cb3 into main Mar 26, 2024
3 checks passed
@keepsimple1 keepsimple1 deleted the query-output branch March 26, 2024 05:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant