Atlas 0.7.0
Networking protocol for the Worldforge system.
atlas.transport.negotiation.Negotiation Class Reference
Inheritance diagram for atlas.transport.negotiation.Negotiation:
Collaboration diagram for atlas.transport.negotiation.Negotiation:

Public Member Functions

def __init__ (self, mode, codecs_lst, fp=None, id="")
 
def get_send_str (self)
 
def __call__ (self, str="")
 
def process_line (self, line)
 
def collect_until_newline (self)
 
def iwill (self, codecs)
 
def ican (self, codecs)
 
def analyse_line_codecs (self, line)
 
def fail (self, msg)
 
def get_codec (self)
 

Public Attributes

 mode
 
 codecs
 
 fp
 
 id
 
 send_str
 
 selected_codec
 
 other_codecs
 
 result_code
 
 other_id
 
 str
 
 state
 

Static Public Attributes

int state_done = 0
 
string state_id = "id"
 
string state_negotiation = "negotiation"
 
string state_found = "found"
 

Detailed Description

Definition at line 50 of file negotiation.py.

Constructor & Destructor Documentation

◆ __init__()

def atlas.transport.negotiation.Negotiation.__init__ (   self,
  mode,
  codecs_lst,
  fp = None,
  id = "" 
)

Definition at line 61 of file negotiation.py.

Member Function Documentation

◆ __call__()

def atlas.transport.negotiation.Negotiation.__call__ (   self,
  str = "" 
)

Definition at line 91 of file negotiation.py.

◆ analyse_line_codecs()

def atlas.transport.negotiation.Negotiation.analyse_line_codecs (   self,
  line 
)

Definition at line 124 of file negotiation.py.

◆ collect_until_newline()

def atlas.transport.negotiation.Negotiation.collect_until_newline (   self)

Definition at line 104 of file negotiation.py.

◆ fail()

def atlas.transport.negotiation.Negotiation.fail (   self,
  msg 
)

Definition at line 130 of file negotiation.py.

◆ get_codec()

def atlas.transport.negotiation.Negotiation.get_codec (   self)

Definition at line 137 of file negotiation.py.

◆ get_send_str()

def atlas.transport.negotiation.Negotiation.get_send_str (   self)

Definition at line 86 of file negotiation.py.

◆ ican()

def atlas.transport.negotiation.Negotiation.ican (   self,
  codecs 
)

Definition at line 121 of file negotiation.py.

◆ iwill()

def atlas.transport.negotiation.Negotiation.iwill (   self,
  codecs 
)

Definition at line 118 of file negotiation.py.

◆ process_line()

def atlas.transport.negotiation.Negotiation.process_line (   self,
  line 
)

Definition at line 101 of file negotiation.py.

Member Data Documentation

◆ codecs

atlas.transport.negotiation.Negotiation.codecs

Definition at line 65 of file negotiation.py.

◆ fp

atlas.transport.negotiation.Negotiation.fp

Definition at line 68 of file negotiation.py.

◆ id

atlas.transport.negotiation.Negotiation.id

Definition at line 69 of file negotiation.py.

Referenced by atlas.Object.attribute_definition().

◆ mode

◆ other_codecs

atlas.transport.negotiation.Negotiation.other_codecs

Definition at line 76 of file negotiation.py.

◆ other_id

atlas.transport.negotiation.Negotiation.other_id

Definition at line 80 of file negotiation.py.

◆ result_code

atlas.transport.negotiation.Negotiation.result_code

Definition at line 79 of file negotiation.py.

◆ selected_codec

atlas.transport.negotiation.Negotiation.selected_codec

Definition at line 75 of file negotiation.py.

◆ send_str

atlas.transport.negotiation.Negotiation.send_str

Definition at line 74 of file negotiation.py.

◆ state

atlas.transport.negotiation.Negotiation.state

Definition at line 84 of file negotiation.py.

◆ state_done

int atlas.transport.negotiation.Negotiation.state_done = 0
static

Definition at line 51 of file negotiation.py.

◆ state_found

string atlas.transport.negotiation.Negotiation.state_found = "found"
static

Definition at line 54 of file negotiation.py.

◆ state_id

string atlas.transport.negotiation.Negotiation.state_id = "id"
static

Definition at line 52 of file negotiation.py.

◆ state_negotiation

string atlas.transport.negotiation.Negotiation.state_negotiation = "negotiation"
static

Definition at line 53 of file negotiation.py.

◆ str

atlas.transport.negotiation.Negotiation.str

Definition at line 83 of file negotiation.py.


The documentation for this class was generated from the following file: