Beispiel #1
0
        public static Postman GetPackage(NetworkStream netStream)
        {
            BinaryFormatter formatter = new BinaryFormatter();

            Postman postMan = (Postman)formatter.Deserialize(netStream);

            return(postMan);
        }
Beispiel #2
0
        public static void SendPackage(NetworkStream netStream, Postman postMan)
        {
            BinaryFormatter formatter = new BinaryFormatter();

            formatter.Serialize(netStream, postMan);
        }