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(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

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

Update GossipPartner.java