src/Network/Target.hh
changeset 432 82b0f4e55a13
parent 431 c6d7272a164b
--- a/src/Network/Target.hh	Mon Jan 26 23:03:47 2009 +0200
+++ b/src/Network/Target.hh	Mon Jan 26 23:26:44 2009 +0200
@@ -25,7 +25,7 @@
 
     public:        
         /**
-         * Send a raw packet prepared using write_packet_header. This does not need to copy the packet data around.
+         * Send a raw packet prepared using NetworkSession::write_packet_header. This does not need to copy the packet data around.
          *
          * XXX: this interface needs fixing to be less procedural
          *
@@ -37,16 +37,12 @@
         void send_raw (const NetworkPacketBuffer &pkt, bool reliable = true);
 
         /**
-         * Send the given packet on the given channel to this destination.
+         * Send the given packet to this destination.
          *
-         * Note that this constructs a new *NetworkPacket* containing our header and the given packet, so there
-         * given packet must be small enough to fit.
-         *
-         * @param channel_id the NetworkChannelID to use
-         * @param pkt the NetworkPacket to send on the given channel
+         * @param pkt the NetworkChannelPacket to send
          * @param reliable Whether to use TCP or UDP
          */
-        void send (NetworkChannelID channel_id, const NetworkPacketBuffer &pkt, bool reliable = true);
+        void send (const NetworkChannelPacket &pkt, bool reliable = true);
 };
 
 #endif /* NETWORK_TARGET_HH */