Skip to content

Commit 3f4d6d7

Browse files
authored
Rollup merge of rust-lang#85792 - mjptree:refactor-windows-sockets, r=JohnTitor
Refactor windows sockets impl methods No behavioural changes, but a bit tidier visual flow.
2 parents 5936ecc + 78d3d37 commit 3f4d6d7

File tree

2 files changed

+173
-133
lines changed

2 files changed

+173
-133
lines changed

library/std/src/sys/windows/c.rs

+1
Original file line numberDiff line numberDiff line change
@@ -234,6 +234,7 @@ pub const SD_RECEIVE: c_int = 0;
234234
pub const SD_SEND: c_int = 1;
235235
pub const SOCK_DGRAM: c_int = 2;
236236
pub const SOCK_STREAM: c_int = 1;
237+
pub const SOCKET_ERROR: c_int = -1;
237238
pub const SOL_SOCKET: c_int = 0xffff;
238239
pub const SO_RCVTIMEO: c_int = 0x1006;
239240
pub const SO_SNDTIMEO: c_int = 0x1005;

0 commit comments

Comments
 (0)