Giter Site home page Giter Site logo

alist's Introduction

alist - anchor list

2015年度秋学期
ネットワークプログラミング(システムプログラミング基礎) 最終課題

IPアドレス(v4, v6), url, port, pathの入力を受け付けて、入力された先のページに含まれるリンク一覧

  1. オプション処理
  2. URLの入力受付(オプションで指定されていない時)
  3. URLをパースしてホスト部、ポート番号、ディレクトリなどにわける
  4. 上記にしたがってソケットを作成
  5. 接続しHTTPリクエストを送る
  6. html(レスポンス)をパース
  7. title、リンク一覧の表示

使い方

usege: ./alist [-hi] [-l level] [-u url]
  -h: help
  -i: show detailed info
  -l: recursion depth (Future work)
  -u: set the target URL

ファイル構成

  • alist.c, alist.h (メインプログラム)
  • macro.h (汎用マクロの定義)
  • myhtmlparser.c, myhtmlparser.h (リクエストのパース関連)
  • mynetworks.c, mynetworks.h (ネットワーク関連)
  • myopt.c, myopt.h (オプション関連)
  • Makefile

alist's People

Watchers

James Cloos avatar Yusuke Takahashi avatar

Forkers

shunkino

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.