Skip to content

Commit 9535ef8

Browse files
committed
remove redundant examples
1 parent dd780bc commit 9535ef8

File tree

1 file changed

+0
-38
lines changed

1 file changed

+0
-38
lines changed

README.md

Lines changed: 0 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -173,41 +173,3 @@ The maximum chunk size is 500,000 bytes (1-byte header + up to 499,999 bytes of
173173

174174
On macOS, if the server's response spans multiple chunks, the client sends a dummy (empty) chunk after each intermediate response chunk to request the next one. On Linux and Windows, all response chunks are sent by the server without further prompting.
175175

176-
## Complete Client Example
177-
178-
```rust
179-
use onepassword_ipc_client::{send_to, ErrorCode};
180-
181-
fn main() {
182-
let endpoint = "your_endpoint_name";
183-
let request = b"my request payload".to_vec();
184-
185-
match send_to(endpoint, request) {
186-
Ok(response) => {
187-
println!("Got {} bytes back", response.len());
188-
}
189-
Err(err) => {
190-
eprintln!("IPC failed: {:?}", err);
191-
}
192-
}
193-
}
194-
```
195-
196-
### Connection Reuse Example (Linux)
197-
198-
```rust
199-
use std::os::linux::net::SocketAddrExt;
200-
use std::os::unix::net::{SocketAddr, UnixStream};
201-
use onepassword_ipc_client::send_with_stream;
202-
203-
fn main() {
204-
let addr = SocketAddr::from_abstract_name("your_endpoint_name").unwrap();
205-
let mut stream = UnixStream::connect_addr(&addr).unwrap();
206-
207-
let response1 = send_with_stream(&mut stream, b"request one".to_vec()).unwrap();
208-
let response2 = send_with_stream(&mut stream, b"request two".to_vec()).unwrap();
209-
210-
println!("Response 1: {} bytes", response1.len());
211-
println!("Response 2: {} bytes", response2.len());
212-
}
213-
```

0 commit comments

Comments
 (0)