ServerPortfolio  2.0
Python parsers and server
 All Classes Namespaces Files Functions Variables Properties Pages
Public Member Functions | Public Attributes | List of all members
serverportfolio.ModClientTCP.TCPClient Class Reference

Make a connection to the root application server to send directly new data. More...

Public Member Functions

def __init__
 
def GetActivity
 
def Connect
 Try to connect to the server. More...
 
def SendData
 Connect to the server send the data no answer at this point Close the socket. More...
 

Public Attributes

 logger
 
 active
 default true at creation, SendData will send back false if the connection is impossible. More...
 
 sock
 

Detailed Description

Make a connection to the root application server to send directly new data.

do not accept answer from the server.
Test is listening (correct connect function) to do

Definition at line 19 of file ModClientTCP.py.

Constructor & Destructor Documentation

def serverportfolio.ModClientTCP.TCPClient.__init__ (   self)

Definition at line 21 of file ModClientTCP.py.

Member Function Documentation

def serverportfolio.ModClientTCP.TCPClient.Connect (   self,
  only_check = False 
)

Try to connect to the server.

connection is opened at the end ??

Parameters
only_checkif True try to connect and close the socket and return the status

Definition at line 42 of file ModClientTCP.py.

Referenced by serverportfolio.ModClientTCP.TCPClient.SendData().

Here is the caller graph for this function:

def serverportfolio.ModClientTCP.TCPClient.GetActivity (   self)

Definition at line 34 of file ModClientTCP.py.

References serverportfolio.ModClientTCP.TCPClient.active.

def serverportfolio.ModClientTCP.TCPClient.SendData (   self,
  data 
)

Connect to the server send the data no answer at this point Close the socket.

Definition at line 82 of file ModClientTCP.py.

References serverportfolio.ModClientTCP.TCPClient.Connect().

Here is the call graph for this function:

Member Data Documentation

serverportfolio.ModClientTCP.TCPClient.active

default true at creation, SendData will send back false if the connection is impossible.

now tested by Connect every time

Definition at line 32 of file ModClientTCP.py.

Referenced by serverportfolio.ModClientTCP.TCPClient.GetActivity().

serverportfolio.ModClientTCP.TCPClient.logger
serverportfolio.ModClientTCP.TCPClient.sock

Definition at line 47 of file ModClientTCP.py.


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