         if @rawSocket?
             @close()
 
-        net = require('net')
         @rawSocket = net.connect @port, @host
         @rawSocket.setNoDelay()
 


# Networking code

EventEmitter = require('events').EventEmitter

class Connection extends EventEmitter
    DEFAULT_HOST: 'localhost'
    DEFAULT_PORT: 28015
    DEFAULT_AUTH_KEY: ''

# Protobuf

# Initialize message serializer with
desc = fs.readFileSync(__dirname + "/ql2.desc")
NodePB = new node_protobuf.Protobuf(desc)

# Errors

