public ReliableIM.Network.Protocol.Packet ReadPacket() { //Create a new binary reader to read the packet contents. BinaryReader reader = new BinaryReader(GetStream()); //Read the packet using this protocol. ReliableIM.Network.Protocol.Packet packet = PROTOCOL.ReadPacket(reader); //Return the packet to the caller. return(packet); }