Naglowek kazdego pakietu
Przed wyslaniem dowolnego pakietu najpierw musimy wyslac ten, zawiera on typ wyslanego pakietu
oraz jego dlugosc, dzieki temu server gadu-gadu wie ile bajtow ma od nasz przeczytac oraz co one
oznaczaja.
| C# | Visual Basic | Visual C++ |
public class GaduPacketHeader : IGaduPacket
Public Class GaduPacketHeader _ Implements IGaduPacket
public ref class GaduPacketHeader : IGaduPacket
| All Members | Constructors | Methods | Properties | ||
| Icon | Member | Description |
|---|---|---|
| GaduPacketHeader()()() | ||
| Equals(Object) | (Inherited from Object.) | |
| Finalize()()() | Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.) | |
| GetHashCode()()() | Serves as a hash function for a particular type. GetHashCode()()() is suitable for use in hashing algorithms and data structures like a hash table. (Inherited from Object.) | |
| getSize()()() |
Zwraca rozmiar pakietu.
| |
| GetType()()() | Gets the Type of the current instance. (Inherited from Object.) | |
| Length |
Rozmiar pakietu
| |
| MemberwiseClone()()() | Creates a shallow copy of the current Object. (Inherited from Object.) | |
| read(NetworkStream, Int32) |
Czyta pakiet z NetworkStream
| |
| ToString()()() | (Inherited from Object.) | |
| Type |
Typ pakietu
| |
| write(NetworkStream) |
Wypisuje pakiet na NetworkStream
|
| Object | |
| GaduPacketHeader | |