shithub: purgatorio

ref: c116550e6a41572796e4db65e4f6acbcb3d9d6f8
dir: /appl/charon/transport.m/

View raw version
Transport: module
{
	HTTPPATH: con "/dis/charon/http.dis";
	FTPPATH: con "/dis/charon/ftp.dis";
	FILEPATH: con "/dis/charon/file.dis";

	init:		fn(cu: CharonUtils);
	connect:	fn(nc: ref CharonUtils->Netconn, bs: ref CharonUtils->ByteSource);
	writereq:	fn(nc: ref CharonUtils->Netconn, bs: ref CharonUtils->ByteSource);
	gethdr:	fn(nc: ref CharonUtils->Netconn, bs: ref CharonUtils->ByteSource);
	getdata:	fn(nc: ref CharonUtils->Netconn, bs: ref CharonUtils->ByteSource): int;
	defaultport:	fn(scheme: string) : int;
};