added test for learning lan services
This commit is contained in:
		
							parent
							
								
									7bb95c3b87
								
							
						
					
					
						commit
						d4652e1107
					
				
					 5 changed files with 93 additions and 40 deletions
				
			
		|  | @ -2,6 +2,8 @@ | |||
| 
 | ||||
| LAN transport server thread | ||||
| """ | ||||
| from gevent.pywsgi import WSGIServer | ||||
| from flask import Flask | ||||
| """ | ||||
|     This program is free software: you can redistribute it and/or modify | ||||
|     it under the terms of the GNU General Public License as published by | ||||
|  | @ -16,3 +18,16 @@ LAN transport server thread | |||
|     You should have received a copy of the GNU General Public License | ||||
|     along with this program.  If not, see <https://www.gnu.org/licenses/>. | ||||
| """ | ||||
| 
 | ||||
| 
 | ||||
| class LANServer: | ||||
|     def __init__(self, shared_state): | ||||
|         app = Flask(__name__) | ||||
|         self.app = app | ||||
| 
 | ||||
|         @app.route("/") | ||||
|         def ping(): | ||||
|             return "pong!" | ||||
| 
 | ||||
|     def start_server(): | ||||
|         return | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue