/* $Id: chkbind.c,v 1.2 2005/06/04 18:01:32 hisi Exp $ */ /************************************************************************ * psybnc2.2.2, tools/chksock.c * Copyright (C) 2001 the most psychoid and * the cool lam3rz IRC Group, IRCnet * http://www.psychoid.lam3rz.de * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 1, or (at your option) * any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ /* this program gets compiled, if no lsock and lnsl is needed */ #ifndef lint static char rcsid[] = "@(#)$Id: chkbind.c,v 1.2 2005/06/04 18:01:32 hisi Exp $"; #endif #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include int main() { int lsock; struct sockaddr_in sin; struct hostent *he; char *e; e=inet_ntoa(sin.sin_addr); lsock = socket (AF_INET, SOCK_STREAM, IPPROTO_TCP); he = gethostbyname("www.freenet6.org"); exit(0x0); }