static void Main(string[] args) { //Functional IPB login with ban checking :3 Packet p = Packet.LoginPacket("user","password", false); ServerPeer srv = new ServerPeer(8850, new LoginCheckModule.IPB("http://hipolipolopig.us/SkyNet.php")); srv.Start(); TcpClient cli = new TcpClient(); cli.Connect("localhost", 8850); NetIO io = new NetIO(cli.GetStream()); io.WritePacket(p); }
public void Write(NetIO IO) { Core.Serialize<Packet>(IO._writer.BaseStream, this); }