graphix-package-sys 0.9.0

A dataflow language for UIs and network programming, sys package
Documentation
1
2
3
4
5
6
7
8
use sys::io;
use sys::tcp;

/// Upgrade a TCP stream to a TLS client connection.
val connect: fn(?#ca_cert:[bytes, null], hostname: string, stream: io::Stream<`Tcp>) -> Result<io::Stream<`Tls>, `TLSError(string)>;

/// Upgrade a TCP stream to a TLS server connection.
val accept: fn(#cert:bytes, #key:bytes, stream: io::Stream<`Tcp>) -> Result<io::Stream<`Tls>, `TLSError(string)>;