chiark / gitweb /
changelog: finalise 1.3.5
[chiark-tcl.git] / dgram / dgram.tct
index 534d8ac0405305118dc80c027c265e58acdae36d..938d0a3bf9a8f3f67a5dd8530cb92ce66480300e 100644 (file)
@@ -1,5 +1,5 @@
 # dgram - Tcl extension for udp datagrams
-# Copyright 2006 Ian Jackson
+# Copyright 2006-2012 Ian Jackson
 #
 # This program is free software; you can redistribute it and/or
 # modify it under the terms of the GNU General Public License as
@@ -12,9 +12,7 @@
 # General Public License for more details.
 #
 # You should have received a copy of the GNU General Public License
-# along with this library; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-# 02110-1301, USA.
+# along with this library; if not, see <http://www.gnu.org/licenses/>.
 
 
 Type sockaddr:                 SockAddr_Value @
@@ -34,6 +32,9 @@ Table dgramsocket DgramSocket_SubCommand
                sock    iddata(&cht_dgram_socks)
                data    hb
                remote  sockaddr
+       sockname
+               sock    iddata(&cht_dgram_socks)
+               =>      sockaddr
        on-receive
                sock    iddata(&cht_dgram_socks)
                ?script obj