Changeset 4152 for trunk/packages/vizservers/vmd
- Timestamp:
- Jan 28, 2014 7:38:43 AM (9 years ago)
- Location:
- trunk/packages/vizservers/vmd
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/packages/vizservers/vmd/INSTALL.txt
r4150 r4152 1 Checkout vmdbuild directory from rappture-bat respository 2 Follow instructions in INSTALL.txt there 1 Checkout vmdbuild directory from rappture-bat repository 2 3 svn co https://nanohub.org/infrastructure/rappture-bat/svn/trunk/vmdbuild vmdbuild 4 5 Follow instructions in INSTALL.txt there. You'll need the vmdserver.tcl 6 script from here. 7 8 9 10 -
trunk/packages/vizservers/vmd/vmdserver.tcl
r4104 r4152 607 607 fileevent $cid readable [list server_handle $cid $cid] 608 608 fconfigure $cid -buffering none -blocking 0 609 610 # identify server type to this client611 # The server identifier must be in the form <name> <version>. The612 # base connect method will ignore characters until it finds this line.613 puts $cid "vmd 0.1"614 609 } 615 610 … … 624 619 append buffer($cin) $line "\n" 625 620 if {[info complete $buffer($cin)]} { 626 #puts stdout "command is ($buffer($cin))"627 621 set request $buffer($cin) 628 622 set buffer($cin) "" … … 631 625 server_send_image -eventually 632 626 } else { 633 puts stdout "last gets is ($line) cmd=($request) result=($result)"634 627 server_oops $cout $result 635 628 if { [string match "invalid command*" $result] } { 636 bgerror $result629 bgerror "I got a invalid command: $result" 637 630 exit 1 638 631 } … … 770 763 socket -server server_accept 2018 771 764 } else { 772 fileevent stdin readable [list server_handle stdin stdout] 773 774 # identify server type to this client 775 puts stdout "vmd 0.1" 776 flush stdout 777 fconfigure stdout -buffering none -blocking 0 765 set cin $vmd_client(read) 766 set cout $vmd_client(write) 767 768 fileevent $cin readable [list server_handle $cin $cout] 769 fconfigure $cout -buffering none -blocking 0 778 770 } 779 771
Note: See TracChangeset
for help on using the changeset viewer.