Skip to content

Commit

Permalink
seperate receive data logic to http_client.
Browse files Browse the repository at this point in the history
  • Loading branch information
dista committed Dec 17, 2011
1 parent bda0adc commit ce3054c
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
10 changes: 10 additions & 0 deletions src/analyzer/http_client.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
'''
Created on 2011-12-18
@author: dista
'''
import asyncore, socket

class HttpClient(asyncore.dispatcher):
def __init__(self, url):
self.url = url
8 changes: 6 additions & 2 deletions src/analyzer/media_server_admin_queryer.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,13 @@
@author: dista
'''
import asyncore, socket
from http_client import HttpClient

class MediaServerAdminQueryer(asyncore.dispatcher):
class MediaServerAdminQueryer(HttpClient):
def __init__(self, analyzer, admin_if_addr):
HttpClient.__init__(self, admin_if_addr)
self.analyzer = analyzer
self.admin_if_addr = admin_if_addr

def on_receive_all_data(self, data):
pass

0 comments on commit ce3054c

Please sign in to comment.