Registry / networking / ws2-32-sys

ws2-32-sys

JSON →
library0.2.1rscratesunverified

Contains function definitions for the Windows API library ws2_32. See winapi for types and constants.

# Cargo.toml [dependencies] ws2_32-sys = "0.2.1"
INSTALL
IMPORT
SIG · WS2-32-SYS
W
ws2-32-sys
networkingrustv0.2.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

bind
use ws2_32_sys::bind;

Low-level Windows socket API bindings; prefer `std::net` for most use cases.

use ws2_32_sys::bind; use std::net::SocketAddrV4; fn main() { // This is a low-level binding; typically use std::net instead. // Example: calling bind directly is unsafe and requires raw sockets. println!("ws2_32_sys provides raw Windows socket functions."); }
Debug
Known issues
gotchaUnsafe and low-level; requires careful handling of Windows socket handles.
fix
Use the safe `std::net` module or the `winapi` crate for higher-level abstractions.
affects: >=0.2.1
Upgrade
Version history
0.2.1latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
24 hits · last 30 days
node
20
OpenAI (training)
1
Resources
ws2-32-sys — cargo add ws2-32-sys · libregistry