Package deltavsoft :: Module rcfproto :: Class RcfProtoSession
[frames] | no frames]

Class RcfProtoSession

source code

_object --+
          |
         RcfProtoSession

Represents the server-side session associated with a RPC connection.

Instance Methods
 
__init__(self, *args, **kwargs) source code
 
SetFailed(self, *args)
Causes Failed() to return true on the client side.
source code
 
IsCanceled(self)
If true, indicates that the client canceled the RPC, so the server may as well give up on replying to it.
source code
 
GetClientUsername(self)
Returns the Windows username of the client, if a NTLM or Kerberos transport protocol is being used.
source code
 
GetTransportProtocol(self)
Returns the transport protocol in use on this server session.
source code
 
GetTransportType(self)
Returns the transport type of this server session.
source code
 
GetEnableCompression(self)
Returns true if compression is enabled for this server session, and false otherwise.
source code
 
GetConnectionDuration(self)
Returns the duration of the client connection, in milliseconds.
source code
 
GetRemoteCallCount(self)
Returns the number of remote calls executed on the server session so far.
source code
 
GetTotalBytesReceived(self)
Returns the total number of bytes received by the server session so far.
source code
 
GetTotalBytesSent(self)
Returns the total number of bytes sent from the server session so far.
source code
Method Details

SetFailed(self, *args)

source code 

Causes Failed() to return true on the client side. "reason" will be incorporated into the message returned by ErrorText(). If you find you need to return machine-readable information about failures, you should incorporate it into your response protocol buffer and should NOT call SetFailed().

IsCanceled(self)

source code 

If true, indicates that the client canceled the RPC, so the server may as well give up on replying to it. The server should still call the final "done" callback.

GetEnableCompression(self)

source code 

Returns true if compression is enabled for this server session, and false otherwise. Compression is enabled by the client.