C#
스스로 네트워크 프로그래밍 #7 - Packet Generator
namespace PacketGeneratorclass Program{ public static string genPacket = ""; public static string enumFormat = ""; public static int enumNum = 0; int main() { XmlReaderSettings ~~ XmlReader r = new XmlReader("PDL.xml"); string fileFormat = ""; while(r.Read()) { // packet 아닌거 거르고 가져왔는데 이름 null 이면 거르고 if(r.Depth == ..
스스로 네트워크 프로그래밍 #6 - Selialization
Selialization #2를 간단히 들은 후 직접 짜본 코드Public class ClientSession : PacketSession{ class Packet { ushort size; ushort packetId; } enum PacketID { PlayerInfoReq = 1, PlayerInfoOk = 2 } class PlayerInfoReq : Packet { long playerId; public PlayerInfoReq() { size = 12; packetId = (ushort)PacketID.PlayerInfoRe..