# Path: PyChat/client/error.py



import os
from helper import textview # helper modules
from helper import markup # helper modules
from PyChat.client import error
    from connect import setup_factory
    from PyChat.client.connect import setup_factory

    def get_host(self):
        """
        Returns the host address
        """
        return self.host

    def get_port(self):
        """
        Returns the connection port 
        """
        return self.port

    def send(self, text):
        """
        Sends the data over the network and updates
        the gui
        """
        self.updateView('me', text)
        if self.protocol:
            self.protocol.send(text) # logs and sends the message

    def sendFile(self, fName):
        """
        Sends file over the network and updates
        the gui
        """
        if self.protocol:
            self.protocol.sendFile(fName) # logs and sends the message
        else:

# Path: PyChat/client/error.py



# Path: PyChat/client/gui/clientClass.py
import os
from helper import textview # helper modules
from helper import markup # helper modules
from PyChat.client import error
    from connect import setup_factory
    from PyChat.client.connect import setup_factory


    def get_host(self):
        """
        Returns the host address
        """
        return self.host

    def get_port(self):
        """
        Returns the connection port 
        """
        return self.port

    def send(self, text):
        """
        Sends the data over the network and updates
        the gui
        """
        self.updateView('me', text)
        if self.protocol:
            self.protocol.send(text) # logs and sends the message

    def sendFile(self, fName):
        """
        Sends file over the network and updates
        the gui
        """
        if self.protocol:
            self.protocol.sendFile(fName) # logs and sends the message
        else:

            self.updateView('me', error.__filefail__)