#NEWLINE# def buildProtocol( self , addr ) : #NEWLINE# #INDENT# self . logger . debug ( ( 'building protocol for %s' % self . peerType ) ) #NEWLINE# if ( self . peerType == base . CLIENT ) : #NEWLINE# #INDENT# self . logger . debug ( ( 'Connected to peer at %s:%d' % ( self . host , addr . port ) ) ) #NEWLINE# self . sendMessage ( base . CONNECTED ) #NEWLINE# #UNINDENT# return self