Package Skype4Py :: Module application :: Class ApplicationStream
[frames] | no frames]

Class ApplicationStream

source code

  object --+    
           |    
utils.Cached --+
               |
              ApplicationStream

Represents an application stream in APP2APP protocol.
Instance Methods
 
__len__(self) source code
 
__repr__(self)
repr(x)
source code
 
Disconnect(self)
Disconnects the stream.
source code
 
close(self)
Disconnects the stream.
source code
unicode
Read(self)
Reads data from stream.
source code
unicode
read(self)
Reads data from stream.
source code
 
SendDatagram(self, Text)
Sends datagram to stream.
source code
 
Write(self, Text)
Writes data to stream.
source code
 
write(self, Text)
Writes data to stream.
source code

Inherited from utils.Cached: __copy__

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __init__, __reduce__, __reduce_ex__, __setattr__, __sizeof__, __str__, __subclasshook__

Static Methods

Inherited from utils.Cached: __new__

Properties
Application Application
Application this stream belongs to.
unicode ApplicationName
Name of the application this stream belongs to.
int DataLength
Number of bytes awaiting in the read buffer.
str Handle
Stream handle in u'<Skypename>:<n>' format.
str PartnerHandle
Skypename of the user this stream is connected to.

Inherited from object: __class__

Method Details

__repr__(self)
(Representation operator)

source code 

repr(x)

Overrides: object.__repr__
(inherited documentation)

Read(self)

source code 
Reads data from stream.
Returns: unicode
Read data or an empty string if none were available.

read(self)

source code 
Reads data from stream.
Returns: unicode
Read data or an empty string if none were available.

SendDatagram(self, Text)

source code 
Sends datagram to stream.
Parameters:
  • Text (unicode) - Datagram to send.

Write(self, Text)

source code 
Writes data to stream.
Parameters:
  • Text (unicode) - Data to send.

write(self, Text)

source code 
Writes data to stream.
Parameters:
  • Text (unicode) - Data to send.

Property Details

Application

Application this stream belongs to.
Get Method:
_GetApplication(self)
Type:
Application

ApplicationName

Name of the application this stream belongs to. Same as ApplicationStream.Application.Name.
Get Method:
_GetApplicationName(self)
Type:
unicode

DataLength

Number of bytes awaiting in the read buffer.
Get Method:
_GetDataLength(self)
Type:
int

Handle

Stream handle in u'<Skypename>:<n>' format.
Get Method:
_GetHandle(self)
Type:
str

PartnerHandle

Skypename of the user this stream is connected to.
Get Method:
_GetPartnerHandle(self)
Type:
str