public function Send ($data, $reply = FALSE)
	{
		
		// Check the stream is connected
		
		if ($this->_stream === FALSE)
		{
			
			// If not create an error
			
			$this->Error ('Cannot send data, the stream is not connected!');
			
			// return FALSE
			
			return FALSE;
			
		}
		
		// If the data is an array
		
		if (is_array ($data))
		{
			
			// Development Mode
			
			if ($this->dev)
			{
				
				// Add to log
				
				$this->log[]	= 'Send data array:';
				
			}
			
			// Foreach data value
			
			foreach ($data as $val)
			{
				
				// Development Mode
				
				if ($this->dev)
				{
					
					// Add to log
					
					$this->log[]	= $val;
					
				}
				
				// Send the data through the stream
				
				$send	= stream_socket_sendto ($this->_stream, $val . "\r\n");
				
				// If there was an error sending the data
				
				if ($send === FALSE)
				{
					
					// Set an error
					
					$this->Error ('Error sending data: #' . $this->errorCode . ' - ' . $this->errorMessage);
					
					// Close the stream
					
					$this->Close ();
					
					// return FALSE
					
					return FALSE;
					
				}
				
			}
			
		}
		
		// If the data is not an array
		
		else
		{
			
			// Development Mode
			
			if ($this->dev)
			{
				
				// Add to log
				
				$this->log[]	= 'Send: ' . $data;
				
			}
			
			// Send the data through the stream
			
			$send	= stream_socket_sendto ($this->_stream, $data . "\r\n");
			
			// If there was an error sending the data
			
		
			if ($send === FALSE)
			{
				
				// Set an error
				
				$this->Error ('Error sending data: #' . $this->errorCode . ' - ' . $this->errorMessage);
				
				// Close the stream
				
				$this->Close ();
				
				// return FALSE
				
				return FALSE;
				
			}
			
		}
		
		// If a reply is expected
		
		if ($reply !== FALSE)
		{
			
			return $this->Receive ($reply);
			
		}
		
		// Return TRUE
		
		return TRUE;
		
	}