def write(self, data):
     if self.channel is None:
         raise _socket.error("socket not connected")
     return \
         BBBluetoothChannelDelegate.synchronouslyWriteData_toL2CAPChannel_(
             buffer(data), self.channel)
# Copyright (c) 2009 Bea Lam. All rights reserved.
# Copyright (c) 2009 Bea Lam. All rights reserved.
 def write(self, data):
     if self.channel is None:
         raise _socket.error("socket not connected")
     return \
         BBBluetoothChannelDelegate.synchronouslyWriteData_toL2CAPChannel_(
             buffer(data), self.channel)