Changeset 16903 for trunk/Ohana/src/opihi/lib.shell/multicommand.c
- Timestamp:
- Mar 9, 2008, 11:05:49 AM (18 years ago)
- File:
-
- 1 edited
-
trunk/Ohana/src/opihi/lib.shell/multicommand.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/opihi/lib.shell/multicommand.c
r16472 r16903 3 3 static int server = 0; 4 4 static int bufferPending = FALSE; 5 6 int getServer () { 7 return (server); 8 } 5 9 6 10 // XXX this is rather pantasks-specific... … … 28 32 SendCommand (server, strlen(PASSWORD), PASSWORD); 29 33 34 return; 35 } 36 37 // close connection with remote server 38 void multicommand_StopServer () { 39 40 if (!server) return; 41 close (server); 42 server = 0; 30 43 return; 31 44 } … … 58 71 if (bufferPending) { 59 72 // flush old messages 60 while (ExpectMessage (server, 0.2, &message));73 ExpectMessage (server, 0.2, &message); 61 74 bufferPending = FALSE; 62 75 }
Note:
See TracChangeset
for help on using the changeset viewer.
