// //------------------ DOK FILE -------------------------------------------------- +Header core.net.ssh =pkg core.net.ssh =title core.net.ssh =short =desc Documentation in progress... // // //------------------ PROTO ----------------------------------------------------- SSH +Proto SSH =type SSH =mode structure =pkg core.net.ssh =impl mcy =link =desc // // //------------------ PROTO ----------------------------------------------------- SSH2_MSG_CHANNEL_CLOSE +Proto SSH2_MSG_CHANNEL_CLOSE =type Int =mode constant =pkg core.net.ssh =impl mcy =link =desc // // //------------------ PROTO ----------------------------------------------------- SSH_CHANNEL_EOF +Proto SSH_CHANNEL_EOF =type SSH_NOTIFICATIONS =mode empty constructor =pkg core.net.ssh =impl mcy =link =desc // // //------------------ PROTO ----------------------------------------------------- SSH_DATA +Proto SSH_DATA =type SSH_NOTIFICATIONS =mode empty constructor =pkg core.net.ssh =impl mcy =link =desc // // //------------------ PROTO ----------------------------------------------------- SSH_DEBUG +Proto SSH_DEBUG =type Bool =mode constant =pkg core.net.ssh =impl mcy =link =desc // // //------------------ PROTO ----------------------------------------------------- SSH_ERROR +Proto SSH_ERROR =type SSH_NOTIFICATIONS =mode empty constructor =pkg core.net.ssh =impl mcy =link =desc // // //------------------ PROTO ----------------------------------------------------- SSH_NOTIFICATIONS +Proto SSH_NOTIFICATIONS =type SSH_NOTIFICATIONS =mode sum =pkg core.net.ssh =impl mcy =link =desc // // //------------------ PROTO ----------------------------------------------------- SSH_OK +Proto SSH_OK =type SSH_NOTIFICATIONS =mode empty constructor =pkg core.net.ssh =impl mcy =link =desc // // //------------------ PROTO ----------------------------------------------------- SSH_READY +Proto SSH_READY =type SSH_NOTIFICATIONS =mode empty constructor =pkg core.net.ssh =impl mcy =link =desc // // //------------------ PROTO ----------------------------------------------------- sshAccept +Proto sshAccept =type fun a1{SSH} Key Stream (fun Str Str Str -> Bool) (fun SSH_NOTIFICATIONS Str -> a2) -> SSH =mode function =pkg core.net.ssh =impl mcy =link =desc // +arg h =type a1{SSH} =desc // +arg serverKey =type Key =desc // +arg tcp =type Stream =desc // +arg fCheckAuth =type fun Str Str Str -> Bool =desc // +arg fNotify =type fun SSH_NOTIFICATIONS Str -> a2 =desc // +arg result =type SSH =desc // // //------------------ PROTO ----------------------------------------------------- sshAuthPassword +Proto sshAuthPassword =type fun Str -> SshAuth =mode constructor =pkg core.net.ssh =impl mcy =link =desc // // //------------------ PROTO ----------------------------------------------------- sshAuthPublicKey +Proto sshAuthPublicKey =type fun Str Str -> SshAuth =mode constructor =pkg core.net.ssh =impl mcy =link =desc // // //------------------ PROTO ----------------------------------------------------- sshChannelPeerPacketMaxSize +Proto sshChannelPeerPacketMaxSize =type fun Channel -> Int =mode function =pkg core.net.ssh =impl mcy =link =desc // +arg c =type Channel =desc // +arg result =type Int =desc // // //------------------ PROTO ----------------------------------------------------- sshClose +Proto sshClose =type fun a1{SSH} -> Int =mode function =pkg core.net.ssh =impl mcy =link =desc // +arg h =type a1{SSH} =desc // +arg result =type Int =desc // // //------------------ PROTO ----------------------------------------------------- sshConnect +Proto sshConnect =type fun a1{SSH} Str Int Str SshAuth (fun SSH Str Str -> Bool) (fun SSH_NOTIFICATIONS Str -> Int) -> a2 =mode function =pkg core.net.ssh =impl mcy =link =desc // +arg h =type a1{SSH} =desc // +arg host =type Str =desc // +arg port =type Int =desc // +arg login =type Str =desc // +arg auth =type SshAuth =desc // +arg fCheckPublickKey =type fun SSH Str Str -> Bool =desc // +arg fNotify =type fun SSH_NOTIFICATIONS Str -> Int =desc // +arg result =type a2 =desc // // //------------------ PROTO ----------------------------------------------------- sshMsgBool +Proto sshMsgBool =type fun Bool -> Str =mode function =pkg core.net.ssh =impl mcy =link =desc // +arg val =type Bool =desc // +arg result =type Str =desc // // //------------------ PROTO ----------------------------------------------------- sshMsgInt +Proto sshMsgInt =type fun Int -> Str =mode function =pkg core.net.ssh =impl mcy =link =desc // +arg val =type Int =desc // +arg result =type Str =desc // // //------------------ PROTO ----------------------------------------------------- sshMsgInt64 +Proto sshMsgInt64 =type fun Int Int -> Str =mode function =pkg core.net.ssh =impl mcy =link =desc // +arg high =type Int =desc // +arg low =type Int =desc // +arg result =type Str =desc // // //------------------ PROTO ----------------------------------------------------- sshMsgStr +Proto sshMsgStr =type fun Str -> Str =mode function =pkg core.net.ssh =impl mcy =link =desc // +arg val =type Str =desc // +arg result =type Str =desc // // //------------------ PROTO ----------------------------------------------------- sshNotifyEvent +Proto sshNotifyEvent =type fun a1{SSH} SSH_NOTIFICATIONS Str -> Int =mode function =pkg core.net.ssh =impl mcy =link =desc // +arg h =type a1{SSH} =desc // +arg code =type SSH_NOTIFICATIONS =desc // +arg data =type Str =desc // +arg result =type Int =desc // // //------------------ PROTO ----------------------------------------------------- sshOnChannelEvent +Proto sshOnChannelEvent =type fun Channel (fun SSH_NOTIFICATIONS Str -> a1) -> a2 =mode function =pkg core.net.ssh =impl mcy =link =desc // +arg c =type Channel =desc // +arg fNotify =type fun SSH_NOTIFICATIONS Str -> a1 =desc // +arg result =type a2 =desc // // //------------------ PROTO ----------------------------------------------------- sshOnChannelRequest +Proto sshOnChannelRequest =type fun Channel (fun Str Int Str -> a1) -> a2 =mode function =pkg core.net.ssh =impl mcy =link =desc // +arg c =type Channel =desc // +arg fRequest =type fun Str Int Str -> a1 =desc // +arg result =type a2 =desc // // //------------------ PROTO ----------------------------------------------------- sshOnNewChannel +Proto sshOnNewChannel =type fun a1{SSH} (fun Channel -> a2) -> (fun Channel -> Int) =mode function =pkg core.net.ssh =impl mcy =link =desc // +arg h =type a1{SSH} =desc // +arg fNewChannel =type fun Channel -> a2 =desc // +arg result =type fun Channel -> Int =desc // // //------------------ PROTO ----------------------------------------------------- sshParseVals +Proto sshParseVals =type fun Str Int Int -> list Str =mode function =pkg core.net.ssh =impl mcy =link =desc // +arg data =type Str =desc // +arg i =type Int =desc // +arg n =type Int =desc // +arg result =type list Str =desc // // //------------------ PROTO ----------------------------------------------------- sshSendChannelClose +Proto sshSendChannelClose =type fun Channel -> Int =mode function =pkg core.net.ssh =impl mcy =link =desc // +arg c =type Channel =desc // +arg result =type Int =desc // // //------------------ PROTO ----------------------------------------------------- sshSendChannelData +Proto sshSendChannelData =type fun Channel Str -> a1 =mode function =pkg core.net.ssh =impl mcy =link =desc // +arg c =type Channel =desc // +arg data =type Str =desc // +arg result =type a1 =desc // // //------------------ PROTO ----------------------------------------------------- sshSendChannelFailure +Proto sshSendChannelFailure =type fun Channel -> Int =mode function =pkg core.net.ssh =impl mcy =link =desc // +arg c =type Channel =desc // +arg result =type Int =desc // // //------------------ PROTO ----------------------------------------------------- sshSendChannelMsg +Proto sshSendChannelMsg =type fun Channel Int a1 -> Int =mode function =pkg core.net.ssh =impl mcy =link =desc // +arg c =type Channel =desc // +arg code =type Int =desc // +arg data =type a1 =desc // +arg result =type Int =desc // // //------------------ PROTO ----------------------------------------------------- sshSendChannelOpen +Proto sshSendChannelOpen =type fun a1{SSH} Str Int -> Channel =mode function =pkg core.net.ssh =impl mcy =link =desc // +arg h =type a1{SSH} =desc // +arg type =type Str =desc // +arg channel =type Int =desc // +arg result =type Channel =desc // // //------------------ PROTO ----------------------------------------------------- sshSendChannelOpenConfirmation +Proto sshSendChannelOpenConfirmation =type fun Channel -> Int =mode function =pkg core.net.ssh =impl mcy =link =desc // +arg c =type Channel =desc // +arg result =type Int =desc // // //------------------ PROTO ----------------------------------------------------- sshSendChannelRequest +Proto sshSendChannelRequest =type fun Channel Str Bool a1 -> Int =mode function =pkg core.net.ssh =impl mcy =link =desc // +arg c =type Channel =desc // +arg type =type Str =desc // +arg wantRetry =type Bool =desc // +arg data =type a1 =desc // +arg result =type Int =desc // // //------------------ PROTO ----------------------------------------------------- sshSendChannelSuccess +Proto sshSendChannelSuccess =type fun Channel -> Int =mode function =pkg core.net.ssh =impl mcy =link =desc // +arg c =type Channel =desc // +arg result =type Int =desc // // //------------------ PROTO ----------------------------------------------------- sshStream +Proto sshStream =type fun a1{SSH} -> Stream =mode function =pkg core.net.ssh =impl mcy =link =desc // +arg h =type a1{SSH} =desc // +arg result =type Stream =desc // // //------------------ PROTO ----------------------------------------------------- sshTcpCloseAfter +Proto sshTcpCloseAfter =type fun a1{SSH} -> Int =mode function =pkg core.net.ssh =impl mcy =link =desc // +arg h =type a1{SSH} =desc // +arg result =type Int =desc