-fun requestDescribe dom =
- let
- val (_, bio) = requestBio (fn () => ())
- in
- Msg.send (bio, MsgDescribe dom);
- case Msg.recv bio of
- NONE => print "Server closed connection unexpectedly.\n"
- | SOME m =>
- case m of
- MsgDescription s => print s
- | MsgError s => print ("Describe failed: " ^ s ^ "\n")
- | _ => print "Unexpected server reply.\n";
- OpenSSL.close bio
- end
-