Skip to content

Commit 0c7af26

Browse files
JohnTitorgitbot
authored and
gitbot
committed
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 3f228b9 + 4101178 commit 0c7af26

File tree

2 files changed

+173
-133
lines changed

2 files changed

+173
-133
lines changed

std/src/sys/windows/c.rs

Lines changed: 1 addition & 0 deletions
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)