|
|
|
@ -16,7 +16,7 @@ fn main() { |
|
|
|
let thread_id = thread_native_id(); |
|
|
|
assert!(set_thread_priority(thread_id, |
|
|
|
ThreadPriority::Max, |
|
|
|
ThreadSchedulePolicy::Realtime(RealtimeThreadSchedulePolicy::RoundRobin)).is_ok()); |
|
|
|
ThreadSchedulePolicy::Normal(NormalThreadSchedulePolicy::Normal)).is_ok()); |
|
|
|
|
|
|
|
let address = "192.168.1.77:8000"; |
|
|
|
let stream: TcpStream = TcpStream::connect(address).expect("connection failed"); |
|
|
|
|