mirror of
				https://github.com/ciphervance/supercell-wx.git
				synced 2025-10-31 05:50:06 +00:00 
			
		
		
		
	Initial NTP protocol functionality
This commit is contained in:
		
							parent
							
								
									5a8ebfa7ae
								
							
						
					
					
						commit
						94d81c0c6b
					
				
					 7 changed files with 318 additions and 5 deletions
				
			
		
							
								
								
									
										21
									
								
								test/source/scwx/network/ntp_client.test.cpp
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										21
									
								
								test/source/scwx/network/ntp_client.test.cpp
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,21 @@ | |||
| #include <scwx/network/ntp_client.hpp> | ||||
| 
 | ||||
| #include <gtest/gtest.h> | ||||
| 
 | ||||
| namespace scwx | ||||
| { | ||||
| namespace network | ||||
| { | ||||
| 
 | ||||
| TEST(NtpClient, Poll) | ||||
| { | ||||
|    NtpClient client {}; | ||||
| 
 | ||||
|    client.Open("time.nist.gov", "123"); | ||||
|    //client.Open("pool.ntp.org", "123");
 | ||||
|    //client.Open("time.windows.com", "123");
 | ||||
|    client.Poll(); | ||||
| } | ||||
| 
 | ||||
| } // namespace network
 | ||||
| } // namespace scwx
 | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Dan Paulat
						Dan Paulat