forked from dongola7/tcl_bonjour
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updating client and server scripts for Tcl 8.5.
- Loading branch information
Showing
2 changed files
with
5 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,12 @@ | ||
# Example bonjour server | ||
lappend auto_path . | ||
|
||
package require Tcl 8.4 | ||
package require Tcl 8.5 | ||
package require bonjour | ||
|
||
# Register myservice with bonjour. | ||
::bonjour::register _myservice._tcp 30000 {key1 value1 key2 value2} | ||
|
||
# Shutdown after 60 seconds | ||
after 6000 exit | ||
|
||
# Enter the event loop. | ||
vwait forever |