import java.net.*;
public class GossipPartner
{
	/*
	Courtney Karppi
	CISC 370 - GossipProtocol
	May 5, 2015
	*/

	private InetSocketAddress gossipPartnerAddress;
	private boolean isAlive;
	private OutgoingPacketQueue queue;

	public GossipPartner(InetSocketAddress gossipPartnerAddress, OutgoingPacketQueue queue)
	{
		this.gossipPartnerAddress = gossipPartnerAddress;
		this.queue = queue;
	}//constructor

	public boolean equals(Object other)
	{
		return this.hashCode() == ((GossipPartner)other).hashCode();
	}//equals

	public InetSocketAddress getGossipPartnerAddress()
	{
		return this.gossipPartnerAddress;
	}//getGossipPartnerAddress

	public int hashCode()
	{
		return this.gossipPartnerAddress.toString().hashCode();
	}//hashcode

	public boolean isAlive()
	{
		return this.isAlive();
	}//isAlive

	public void send(UDPMessage message)
	{
		DatagramSender			datagramSender;
		DatagramSocket			socket;
		OutgoingPacketQueue queue;

		try
		{
			socket = new DatagramSocket(this.getGossipPartnerAddress());
			queue = new OutgoingPacketQueue();
			queue.enQueue(message.getDatagramPacket());

			datagramSender = new DatagramSender(socket, queue, UDPMessage.getMaximumPacketSizeInBytes());
			datagramSender.action(socket, queue);
		}
		catch(SocketException se)
		{
			System.out.println(se.getMessage());
		}
	}//send

}//gossipPartner

@@ -785,18 +785,16 @@
 .isAlive
-()
 ;%0A%09%7D//is

Update GossipPartner.java