~vomun-developers/anonplus/vomun-trunk

« back to all changes in this revision

Viewing changes to src/libs/friends.py

  • Committer: AJ00200
  • Date: 2011-11-20 22:43:01 UTC
  • Revision ID: git-v1:e4de3c63ccb6d87bb89af85b5306524931b0f3c7
Proper tunnel system

Show diffs side-by-side

added added

removed removed

Lines of Context:
4
4
import json
5
5
import os.path
6
6
import time
7
 
 
8
 
import tunnels.directudp as directudp
 
7
from tunnels import directudp
9
8
from libs.globals import global_vars
10
9
import libs.encryption.rsa
11
10
from libs.packets import parse_packets, packets_by_id, make_packet
135
134
 
136
135
    def connect(self):
137
136
        '''Connect to the friend'''
138
 
        self.wconnection = directudp.Connection(self)
 
137
        self.wconnection = directudp.Tunnel(self)
 
138
        self.wconnection.connect()
139
139
        #self.connected = True
140
140
 
141
141
    def send(self, data, system=0):