"Fossies" - the Fresh Open Source Software Archive

Member "delegate9.9.13/resolvy/resmain.c" (11 Jun 2010, 1912 Bytes) of package /linux/misc/old/delegate9.9.13.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "resmain.c" see the Fossies "Dox" file reference documentation.

    1 /*////////////////////////////////////////////////////////////////////////
    2 Copyright (c) 1995 Electrotechnical Laboratry (ETL), AIST, MITI
    3 
    4 Permission to use, copy, modify, and distribute this material for any
    5 purpose and without fee is hereby granted, provided that the above
    6 copyright notice and this permission notice appear in all copies, and
    7 that the name of ETL not be used in advertising or publicity pertaining
    8 to this material without the specific, prior written permission of an
    9 authorized representative of ETL.
   10 ETL MAKES NO REPRESENTATIONS ABOUT THE ACCURACY OR SUITABILITY OF THIS
   11 MATERIAL FOR ANY PURPOSE.  IT IS PROVIDED "AS IS", WITHOUT ANY EXPRESS
   12 OR IMPLIED WARRANTIES.
   13 /////////////////////////////////////////////////////////////////////////
   14 Content-Type:   program/C; charset=US-ASCII
   15 Program:    resmain.c
   16 Author:     Yutaka Sato <ysato@etl.go.jp>
   17 Description:
   18 History:
   19     950817  created
   20 //////////////////////////////////////////////////////////////////////#*/
   21 #include "ystring.h"
   22 #include "vaddr.h"
   23 #include "dgctx.h"
   24 
   25 void FinishX(PCStr(F),int L,int code)
   26 {
   27     exit(code);
   28 }
   29 
   30 int resolvy_main(int ac,const char *av[]);
   31 int main(int ac,char *av[]){ return resolvy_main(ac,(const char**)av); }
   32 
   33 void setBinaryIO(){ }
   34 void WINthread(){}
   35 int acceptViaSocks(int sock,PVStr(rhost),int *rport){ return -1; }
   36 int bindViaSocks(DGC*Conn,PCStr(dsthost),int dstport,PVStr(rhost),int *rport){ return -1; }
   37 int GetViaSocks(DGC*Conn,PCStr(host),int port){ return 0; }
   38 int CTX_auth(DGC*ctx,PCStr(user),PCStr(pass)){ return 0; }
   39 int VSA_getViaSocksX(DGC*ctx,PCStr(h),int p,VSAddr *sv,AuthInfo *au,VSAddr *lo){
   40     return 0;
   41 }
   42 int serverPid(){ return getpid(); }
   43 void finishClntYY(FL_PAR,DGCTX){}
   44 void finishServYY(FL_PAR,DGCTX){}
   45 const char *gethostaddrX(PCStr(host)){ return "255.255.255.255"; }
   46 int SRCIFfor(DGCTX,PCStr(proto),PCStr(rhost),int rport,PVStr(lhost),int *lport){ return 0; }
   47 DGC*MainConn(){ return 0; }