blob: 5cc8bbe0475b6b6d2e4f2d23f1d5cc47e22a76f4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
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;
};
|