ChrisOS Research ProjectOperating systems · language systems · graphics · machine emulation
DOCUMENTATION ARCHIVEMAIN BRANCH
ChrisOS/Source reference: APPS/NET/SSH.CC

Source reference: APPS/NET/SSH.CC

Deterministic source record. The complete textual file is reproduced below; this page does not replace architectural interpretation in the authored chapters.

File identity

Field Value
Path APPS/NET/SSH.CC
Lines 34
Bytes 511
SHA-256 4f819ba66a347b525cc5e5ef539ac5819f7a5a4e41071ebeb87506cf49d80d70
ChrisOS revision da3df29cb397932c43d32373871fb9380e688ade

Detected syntactic dependencies

Line Include
— No preprocessor include detected.

Detected symbols

Line Symbol
1 main

Complete source

The following block is the complete textual file at the recorded revision. No lines are elided, abbreviated or paraphrased.

void main() {
  int fd;
  char ban[24];
  int i;
  viewport(200, 80);
  text(8, 8, "ssh", 0x00FFFFFF);
  ban[0] = 83;
  ban[1] = 83;
  ban[2] = 72;
  ban[3] = 45;
  ban[4] = 50;
  ban[5] = 46;
  ban[6] = 48;
  ban[7] = 45;
  ban[8] = 67;
  ban[9] = 104;
  ban[10] = 114;
  ban[11] = 105;
  ban[12] = 115;
  ban[13] = 13;
  ban[14] = 10;
  ban[15] = 0;
  fd = sock_connect(167773186, 22);
  i = 0;
  while (i < 8) {
    if (sock_send(fd, ban, 15) > 0) {
      i = 8;
    }
    i = i + 1;
  }
  while (1) {
  }
}

Role of this record

The atlas guarantees file-by-file traceability. Responsibility, invariants, ownership, concurrency, security, performance and subsystem interactions belong in authored chapters and must cite this file when applicable.

Document record ID: source-4f819ba66a347b52 Reviewed source: da3df29cb397 Class: generated-source-reference