Skip to content

Commit 78d3d37

Browse files
committedMay 28, 2021
Refactor windows sockets impl methods
1 parent 6f9df55 commit 78d3d37

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)
Please sign in to comment.