dante 源码 分析


#2013_10_06   星期日   add by greshem
j:\portage\net-proxy\dante\dante-1.3.2.chm::/index.html
main

    newprocinit();

    while(1)
    {

        recv_req(child->s, &req)) != 0) {
        send_req(reqchild->s, &req) == 0) {
        create_response(null,
        send_response(req.s, &response) != 0) {

 639    recv_io(child->s, &io)) != 0) {

667     send_io(iochild->s, &io) == 0) {
745     send_client(negchild->s, &client, null, 0);
1056    doio
    }

########################################################################
1709 recv_io(s, io)
1812       case socks_bind:
1813       case socks_bindreply:
1820       case socks_connect:
1824       case socks_udpassociate:
1860       case socks_bind:
1877       case socks_bindreply:
1894       case socks_connect:
1906       case socks_udpassociate:


#doio 是 整个程序里面最重要的函数了 主要处理 协议方面的东西
root/sockd/sockd_io.c
2198 doio(io, rset, wset, flags, bad)
2301       case socks_tcp: {
2463       case socks_udp: {


你可能感兴趣的:(dante 源码 分析)