public static byte[] HubPrivateIgnored(Leaf x, String sender, String target) { TCPPacketWriter packet = new TCPPacketWriter(); packet.WriteString(x, sender); packet.WriteString(x, target, false); byte[] buf = packet.ToLinkPacket(LinkMsg.MSG_LINK_HUB_PRIVATE_IGNORED); packet = new TCPPacketWriter(); packet.WriteBytes(buf); return(packet.ToAresPacket(TCPMsg.MSG_LINK_PROTO)); }
public static byte[] HubPrintLevel(Leaf x, iconnect.ILevel level, String text) { TCPPacketWriter packet = new TCPPacketWriter(); packet.WriteByte((byte)level); packet.WriteString(x, text, false); byte[] buf = packet.ToLinkPacket(LinkMsg.MSG_LINK_HUB_PRINT_LEVEL); packet = new TCPPacketWriter(); packet.WriteBytes(buf); return(packet.ToAresPacket(TCPMsg.MSG_LINK_PROTO)); }
public static byte[] HubBrowseData(Leaf x, String browser, byte[] data) { TCPPacketWriter packet = new TCPPacketWriter(); packet.WriteString(x, browser); packet.WriteBytes(data); byte[] buf = packet.ToLinkPacket(LinkMsg.MSG_LINK_HUB_BROWSE_DATA); packet = new TCPPacketWriter(); packet.WriteBytes(buf); return(packet.ToAresPacket(TCPMsg.MSG_LINK_PROTO)); }
public static byte[] HubPrintVroom(Leaf x, ushort vroom, String text) { TCPPacketWriter packet = new TCPPacketWriter(); packet.WriteUInt16(vroom); packet.WriteString(x, text, false); byte[] buf = packet.ToLinkPacket(LinkMsg.MSG_LINK_HUB_PRINT_VROOM); packet = new TCPPacketWriter(); packet.WriteBytes(buf); return(packet.ToAresPacket(TCPMsg.MSG_LINK_PROTO)); }
public static byte[] HubNoAdmin(Leaf x, uint ident, String name) { TCPPacketWriter packet = new TCPPacketWriter(); packet.WriteUInt32(ident); packet.WriteString(x, name, false); byte[] buf = packet.ToLinkPacket(LinkHub.LinkMsg.MSG_LINK_HUB_NO_ADMIN); packet = new TCPPacketWriter(); packet.WriteBytes(buf); return(packet.ToAresPacket(TCPMsg.MSG_LINK_PROTO)); }
public static byte[] HubNudge(Leaf x, String target, String sender) { TCPPacketWriter packet = new TCPPacketWriter(); packet.WriteString(x, target); packet.WriteString(x, sender, false); byte[] buf = packet.ToLinkPacket(LinkMsg.MSG_LINK_HUB_NUDGE); packet = new TCPPacketWriter(); packet.WriteBytes(buf); return(packet.ToAresPacket(TCPMsg.MSG_LINK_PROTO)); }
public static byte[] HubEmoteToLeaf(Leaf x, String sender, String text) { TCPPacketWriter packet = new TCPPacketWriter(); packet.WriteString(x, sender); packet.WriteString(x, text, false); byte[] buf = packet.ToLinkPacket(LinkMsg.MSG_LINK_HUB_EMOTE_TO_LEAF); packet = new TCPPacketWriter(); packet.WriteBytes(buf); return(packet.ToAresPacket(TCPMsg.MSG_LINK_PROTO)); }
public static byte[] HubPart(Leaf x, uint ident, LinkUser user) { TCPPacketWriter packet = new TCPPacketWriter(); packet.WriteUInt32(ident); packet.WriteString(x, user.Name); byte[] buf = packet.ToLinkPacket(LinkMsg.MSG_LINK_HUB_PART); packet = new TCPPacketWriter(); packet.WriteBytes(buf); return(packet.ToAresPacket(TCPMsg.MSG_LINK_PROTO)); }
public static byte[] HubPublicToUser(Leaf x, String target, String sender, String text) { TCPPacketWriter packet = new TCPPacketWriter(); packet.WriteString(x, target); packet.WriteString(x, sender); packet.WriteString(x, text, false); byte[] buf = packet.ToLinkPacket(LinkMsg.MSG_LINK_HUB_PUBLIC_TO_USER); packet = new TCPPacketWriter(); packet.WriteBytes(buf); return(packet.ToAresPacket(TCPMsg.MSG_LINK_PROTO)); }
public static byte[] HubEmoteText(Leaf x, uint ident, String name, String text) { TCPPacketWriter packet = new TCPPacketWriter(); packet.WriteUInt32(ident); packet.WriteString(x, name); packet.WriteString(x, text, false); byte[] buf = packet.ToLinkPacket(LinkMsg.MSG_LINK_HUB_EMOTE_TEXT); packet = new TCPPacketWriter(); packet.WriteBytes(buf); return(packet.ToAresPacket(TCPMsg.MSG_LINK_PROTO)); }
public static byte[] HubPersonalMessage(Leaf x, uint ident, LinkUser user) { TCPPacketWriter packet = new TCPPacketWriter(); packet.WriteUInt32(ident); packet.WriteString(x, user.Name); packet.WriteString(x, user.PersonalMessage, false); byte[] buf = packet.ToLinkPacket(LinkMsg.MSG_LINK_HUB_PERSONAL_MESSAGE); packet = new TCPPacketWriter(); packet.WriteBytes(buf); return(packet.ToAresPacket(TCPMsg.MSG_LINK_PROTO)); }
public static byte[] HubVroomChanged(Leaf x, uint ident, LinkUser user) { TCPPacketWriter packet = new TCPPacketWriter(); packet.WriteUInt32(ident); packet.WriteString(x, user.Name); packet.WriteUInt16(user.Vroom); byte[] buf = packet.ToLinkPacket(LinkMsg.MSG_LINK_HUB_VROOM_CHANGED); packet = new TCPPacketWriter(); packet.WriteBytes(buf); return(packet.ToAresPacket(TCPMsg.MSG_LINK_PROTO)); }
public static byte[] HubNickChanged(Leaf x, uint ident, String old_name, String new_name) { TCPPacketWriter packet = new TCPPacketWriter(); packet.WriteUInt32(ident); packet.WriteString(x, old_name); packet.WriteString(x, new_name, false); byte[] buf = packet.ToLinkPacket(LinkMsg.MSG_LINK_HUB_NICK_CHANGED); packet = new TCPPacketWriter(); packet.WriteBytes(buf); return(packet.ToAresPacket(TCPMsg.MSG_LINK_PROTO)); }
public static byte[] HubIUserBin(Leaf x, String target, String command, byte[] args) { TCPPacketWriter packet = new TCPPacketWriter(); packet.WriteString(x, target); packet.WriteString(x, command); packet.WriteBytes(args); byte[] buf = packet.ToLinkPacket(LinkHub.LinkMsg.MSG_LINK_HUB_IUSER_BIN); packet = new TCPPacketWriter(); packet.WriteBytes(buf); return(packet.ToAresPacket(TCPMsg.MSG_LINK_PROTO)); }
public static byte[] LeafPrintLevel(LinkClient x, uint ident, iconnect.ILevel level, String text) { TCPPacketWriter packet = new TCPPacketWriter(); packet.WriteUInt32(ident); packet.WriteByte((byte)level); packet.WriteString(x, text, false); byte[] buf = packet.ToLinkPacket(LinkHub.LinkMsg.MSG_LINK_LEAF_PRINT_LEVEL); packet = new TCPPacketWriter(); packet.WriteBytes(buf); return(packet.ToAresPacket(TCPMsg.MSG_LINK_PROTO)); }
public static byte[] LeafPrintVroom(LinkClient x, uint ident, ushort vroom, String text) { TCPPacketWriter packet = new TCPPacketWriter(); packet.WriteUInt32(ident); packet.WriteUInt16(vroom); packet.WriteString(x, text, false); byte[] buf = packet.ToLinkPacket(LinkHub.LinkMsg.MSG_LINK_LEAF_PRINT_VROOM); packet = new TCPPacketWriter(); packet.WriteBytes(buf); return(packet.ToAresPacket(TCPMsg.MSG_LINK_PROTO)); }
public static byte[] HubScribbleLeaf(Leaf x, String sender, uint height, byte[] img) { TCPPacketWriter packet = new TCPPacketWriter(); packet.WriteString(x, sender); packet.WriteUInt32(height); packet.WriteBytes(img); byte[] buf = packet.ToLinkPacket(LinkMsg.MSG_LINK_HUB_SCRIBBLE_LEAF); packet = new TCPPacketWriter(); packet.WriteBytes(buf); return(packet.ToAresPacket(TCPMsg.MSG_LINK_PROTO)); }
public static byte[] LeafNudge(LinkClient x, LinkUser target, String sender) { TCPPacketWriter packet = new TCPPacketWriter(); packet.WriteUInt32(target.LinkCredentials.Ident); packet.WriteString(x, target.Name); packet.WriteString(x, sender, false); byte[] buf = packet.ToLinkPacket(LinkHub.LinkMsg.MSG_LINK_LEAF_NUDGE); packet = new TCPPacketWriter(); packet.WriteBytes(buf); return(packet.ToAresPacket(TCPMsg.MSG_LINK_PROTO)); }
public static byte[] LeafBrowseData(LinkClient x, uint destination, String browser, byte[] data) { TCPPacketWriter packet = new TCPPacketWriter(); packet.WriteUInt32(destination); packet.WriteString(x, browser); packet.WriteBytes(data); byte[] buf = packet.ToLinkPacket(LinkHub.LinkMsg.MSG_LINK_LEAF_BROWSE_DATA); packet = new TCPPacketWriter(); packet.WriteBytes(buf); return(packet.ToAresPacket(TCPMsg.MSG_LINK_PROTO)); }
public static byte[] LeafPrivateIgnored(LinkClient x, uint sender_ident, String sender, String target) { TCPPacketWriter packet = new TCPPacketWriter(); packet.WriteUInt32(sender_ident); packet.WriteString(x, sender); packet.WriteString(x, target, false); byte[] buf = packet.ToLinkPacket(LinkHub.LinkMsg.MSG_LINK_LEAF_PRIVATE_IGNORED); packet = new TCPPacketWriter(); packet.WriteBytes(buf); return(packet.ToAresPacket(TCPMsg.MSG_LINK_PROTO)); }
public static byte[] LeafEmoteTextToLeaf(LinkClient x, uint target_ident, String name, String text) { TCPPacketWriter packet = new TCPPacketWriter(); packet.WriteUInt32(target_ident); packet.WriteString(x, name); packet.WriteString(x, text, false); byte[] buf = packet.ToLinkPacket(LinkHub.LinkMsg.MSG_LINK_LEAF_EMOTE_TO_LEAF); packet = new TCPPacketWriter(); packet.WriteBytes(buf); return(packet.ToAresPacket(TCPMsg.MSG_LINK_PROTO)); }
public static byte[] LeafCustomDataAll(LinkClient x, ushort vroom, String sender, String ident, byte[] data) { TCPPacketWriter packet = new TCPPacketWriter(); packet.WriteUInt16(vroom); packet.WriteString(x, sender); packet.WriteString(x, ident); packet.WriteBytes(data); byte[] buf = packet.ToLinkPacket(LinkHub.LinkMsg.MSG_LINK_LEAF_CUSTOM_DATA_ALL); packet = new TCPPacketWriter(); packet.WriteBytes(buf); return(packet.ToAresPacket(TCPMsg.MSG_LINK_PROTO)); }
public static byte[] LeafPrivateText(LinkClient x, String sender, IClient target, String text) { TCPPacketWriter packet = new TCPPacketWriter(); packet.WriteUInt32(target.IUser.Link.Ident); packet.WriteString(x, target.Name); packet.WriteString(x, sender); packet.WriteString(x, text); byte[] buf = packet.ToLinkPacket(LinkHub.LinkMsg.MSG_LINK_LEAF_PRIVATE_TEXT); packet = new TCPPacketWriter(); packet.WriteBytes(buf); return(packet.ToAresPacket(TCPMsg.MSG_LINK_PROTO)); }
public static byte[] LeafScribbleLeaf(LinkClient x, uint target_leaf, String sender, int height, byte[] img) { TCPPacketWriter packet = new TCPPacketWriter(); packet.WriteUInt32(target_leaf); packet.WriteString(x, sender); packet.WriteUInt32((uint)height); packet.WriteBytes(img); byte[] buf = packet.ToLinkPacket(LinkHub.LinkMsg.MSG_LINK_LEAF_SCRIBBLE_LEAF); packet = new TCPPacketWriter(); packet.WriteBytes(buf); return(packet.ToAresPacket(TCPMsg.MSG_LINK_PROTO)); }
public static byte[] LeafIUserBin(LinkClient x, LinkUser target, String command, byte[] args) { TCPPacketWriter packet = new TCPPacketWriter(); packet.WriteUInt32(target.Link.Ident); packet.WriteString(x, target.Name); packet.WriteString(x, command); packet.WriteBytes(args); byte[] buf = packet.ToLinkPacket(LinkHub.LinkMsg.MSG_LINK_LEAF_IUSER_BIN); packet = new TCPPacketWriter(); packet.WriteBytes(buf); return(packet.ToAresPacket(TCPMsg.MSG_LINK_PROTO)); }
public static byte[] HubLeafConnected(Leaf x, Leaf leaf) { TCPPacketWriter packet = new TCPPacketWriter(); packet.WriteUInt32(leaf.Ident); packet.WriteString(x, leaf.Name); packet.WriteIP(leaf.ExternalIP); packet.WriteUInt16(leaf.Port); byte[] buf = packet.ToLinkPacket(LinkMsg.MSG_LINK_HUB_LEAF_CONNECTED); packet = new TCPPacketWriter(); packet.WriteBytes(buf); return(packet.ToAresPacket(TCPMsg.MSG_LINK_PROTO)); }
public static byte[] HubCustomDataTo(Leaf x, String sender, String target, String ident, byte[] data) { TCPPacketWriter packet = new TCPPacketWriter(); packet.WriteString(x, sender); packet.WriteString(x, target); packet.WriteString(x, ident); packet.WriteBytes(data); byte[] buf = packet.ToLinkPacket(LinkMsg.MSG_LINK_HUB_CUSTOM_DATA_TO); packet = new TCPPacketWriter(); packet.WriteBytes(buf); return(packet.ToAresPacket(TCPMsg.MSG_LINK_PROTO)); }
public static byte[] HubPrivateText(Leaf x, uint ident, String sender, String target, String text) { TCPPacketWriter packet = new TCPPacketWriter(); packet.WriteUInt32(ident); packet.WriteString(x, sender); packet.WriteString(x, target); packet.WriteString(x, text); byte[] buf = packet.ToLinkPacket(LinkMsg.MSG_LINK_HUB_PRIVATE_TEXT); packet = new TCPPacketWriter(); packet.WriteBytes(buf); return(packet.ToAresPacket(TCPMsg.MSG_LINK_PROTO)); }
public static byte[] LeafCustomDataTo(LinkClient x, uint destination, String sender, String target, String ident, byte[] data) { TCPPacketWriter packet = new TCPPacketWriter(); packet.WriteUInt32(destination); packet.WriteString(x, sender); packet.WriteString(x, target); packet.WriteString(x, ident); packet.WriteBytes(data); byte[] buf = packet.ToLinkPacket(LinkHub.LinkMsg.MSG_LINK_LEAF_CUSTOM_DATA_TO); packet = new TCPPacketWriter(); packet.WriteBytes(buf); return(packet.ToAresPacket(TCPMsg.MSG_LINK_PROTO)); }
public static byte[] LeafBrowse(LinkClient x, uint leaf_ident, String browsee, String browser, ushort browse_ident, byte mime) { TCPPacketWriter packet = new TCPPacketWriter(); packet.WriteUInt32(leaf_ident); packet.WriteString(x, browsee); packet.WriteString(x, browser); packet.WriteUInt16(browse_ident); packet.WriteByte(mime); byte[] buf = packet.ToLinkPacket(LinkHub.LinkMsg.MSG_LINK_LEAF_BROWSE); packet = new TCPPacketWriter(); packet.WriteBytes(buf); return(packet.ToAresPacket(TCPMsg.MSG_LINK_PROTO)); }