<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://wiki.swganh.org/index.php?action=history&amp;feed=atom&amp;title=SWG_Packet_Compression</id>
		<title>SWG Packet Compression - Revision history</title>
		<link rel="self" type="application/atom+xml" href="http://wiki.swganh.org/index.php?action=history&amp;feed=atom&amp;title=SWG_Packet_Compression"/>
		<link rel="alternate" type="text/html" href="http://wiki.swganh.org/index.php?title=SWG_Packet_Compression&amp;action=history"/>
		<updated>2026-04-10T23:11:36Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.26.4</generator>

	<entry>
		<id>http://wiki.swganh.org/index.php?title=SWG_Packet_Compression&amp;diff=2308&amp;oldid=prev</id>
		<title>Snow at 07:31, 21 December 2006</title>
		<link rel="alternate" type="text/html" href="http://wiki.swganh.org/index.php?title=SWG_Packet_Compression&amp;diff=2308&amp;oldid=prev"/>
				<updated>2006-12-21T07:31:02Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;The compression algorithm used on SWG packets is a standard ZLIB algorithm.&lt;br /&gt;
&lt;br /&gt;
Please refer to ZLIB documentation on how the algorithm functions, for the sake of  simplicity, we use the ZLIB's Compress/Decompress functions on the data at a standard level of compression.&lt;br /&gt;
&lt;br /&gt;
The data that is compressed is between the SOE Opcode and the footer. So far no stand-alone SWG Packets have been recorded that are compressed.&lt;br /&gt;
&lt;br /&gt;
If data is compressed, the first byte of the footer (which is a compression byteflag) is 1. If it is not compressed, it is a 0.&lt;br /&gt;
&lt;br /&gt;
Compression will occur BEFORE encryption, and BEFORE a CRC value is appended.&lt;br /&gt;
&lt;br /&gt;
Compression is applied on all network status updates (both client and server), and on packets that are generally &amp;gt; 100 bytes. The largest any packet can be uncompressed is 496 bytes, which includes the footer. If it is larger it must be fragmented first.&lt;/div&gt;</summary>
		<author><name>Snow</name></author>	</entry>

	</feed>