File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -32,16 +32,20 @@ int wsa_init @local;
3232
3333macro void ? start_wsa ()
3434{
35+ io::printn (" Start WSA check " );
3536 if (mem::compare_exchange (& wsa_init , 0 , 2 ) == 2 )
3637 {
3738 Win32_WORD version = 0x0202 ;
39+ io::printn (" Start WSA " );
3840 CInt wsa_error = win32::wsaStartup (version , & wsa_data );
3941 if (wsa_error > 0 )
4042 {
43+ io::printn (" Start WSA failed " );
4144 mem::@atomic_store (wsa_init , 0 );
4245 return os::socket_error ()? ;
4346 }
4447 mem::@atomic_store (wsa_init , 1 );
48+ io::printn (" Start WSA ok " );
4549 }
4650}
4751
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ import std::net;
33
44fn void test_tcp_sock_pair ()
55{
6- tcp:: TcpSocketPair sockets ;
6+ TcpSocketPair sockets ;
77 sockets .init ()!! ;
88 defer sockets .destroy ()!! ;
99
You can’t perform that action at this time.
0 commit comments