summaryrefslogtreecommitdiff
path: root/src/core/network.c
AgeCommit message (Collapse)Author
2002-02-18if gethostbyname() failed, the return value was returned incorrectlyTimo Sirainen
(accidentally cvs committed it after some of my test) git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2516 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-02-17still one isxdigit() -> i_isxdigit()Timo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2510 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-02-10Removed some old backwards compatibility code.Timo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2411 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-01-29..and of course I broke IPv4 net_gethostbyname() with it :)Timo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2359 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-01-29OK, looks like I was doing stupid things with IPv6 hostname lookups :) BackTimo Sirainen
when I originally wrote that code, there wasn't any man pages for them and I couldn't really find any good docs either, so I just copy&pasted some code from somewhere and it seemed to work. Anyway, it was doing reverse name lookup for uninitialized host name which really wasn't a good idea :) git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2358 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-01-29net_gethostbyname() fix for ipv6.Timo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2357 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-01-27toupper(), tolower(), isspace(), is..etc..() aren't safe with chars in someTimo Sirainen
systems, use our own is_...() functions now instead. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2348 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-01-04the same #ifdef { parsing problem..Timo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2296 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-12-14net_listen(): when socket() failed because we tried to use IPv6, we shouldTimo Sirainen
have falled back to IPv4, but wrong errno was checked. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2248 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-10net_listen(): if creating IPv6 socket fails because of EPROTONOSUPPORT, tryTimo Sirainen
without IPv6. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1979 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-07net_connect(): if bind() fails, set the address back to INADDR_ANY to make ↵Timo Sirainen
sure it doesn't leave the socket in buggy state. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1978 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-05-17Getting rid of gettext, moved some _(..) texts to themes and left some errorTimo Sirainen
messages hard coded. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1503 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-03-18moved stuff from net-internal.h to network.h. HPUX needed one of theTimo Sirainen
#includes in there to work. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1409 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-03-14net_listen() works now properly with --enable-ipv6 and a system that doesn'tTimo Sirainen
have a working IPv6 support git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1382 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-03-04union { .. } addr removed from IPADDR - it hasn't been actually usedTimo Sirainen
for a long time.. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1339 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-03-04IPv6 fixes. Everything now keeps both v4 and v6 addresses in memory andTimo Sirainen
at connect() time it's decided which one should be used. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1334 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-02-20/SET resolve_prefer_ipv6 - should we prefer IPv6 or IPv4 addresses inTimo Sirainen
host name resolving. /SERVER ADD: added options -4 and -6. Fixed crash at startup if server didn't have chat network set. "Connecting to xxx [ip]" is now displayed before calling connect(), so if it fails we'll still get the IP it's trying to connect to. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1268 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-02-09/CONNECT, /SERVER: added -4 and -6 options for specifying if we shouldTimo Sirainen
connect to IPv4 or IPv6 address of the server. If -host or /SET hostname is set irssi determines from it if it should use IPv4 or v6. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1192 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-01-18net_getservbyport() - Get name of TCP serviceTimo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1134 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-01-15Fixed some signedness warnings and memdebug.h should compile now fineTimo Sirainen
with -ansi. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1124 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-01-11Some signed/unsigned warnings removed. Don't call fe_exec_init/deinit in win32Timo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1104 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-01-02net_accept(), net_getsockname() IPv6 fixes pointed out by pv2b :)Timo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1050 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-01-02removed the win32 EINPROGRESS define, that wouldn't work anywayTimo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1049 dbcabf3a-b0e7-0310-adc4-f8d773084564
2000-12-19security fixes from 0.7.97.2Timo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1017 dbcabf3a-b0e7-0310-adc4-f8d773084564
2000-12-08net_receive(), net_transmit(): error handling was buggyTimo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@980 dbcabf3a-b0e7-0310-adc4-f8d773084564
2000-12-04Use GIOChannel instead of sockets directly. Helps porting to win32 :)Timo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@962 dbcabf3a-b0e7-0310-adc4-f8d773084564
2000-11-11Some sizeof() fixes to IPv6 support when connecting to IPv4 addresses.Timo Sirainen
Linux didn't seem to have any problem with these but some other OSes did. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@835 dbcabf3a-b0e7-0310-adc4-f8d773084564
2000-10-26Win32 updatesTimo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@784 dbcabf3a-b0e7-0310-adc4-f8d773084564
2000-10-26Some fixes for compiling with Win32 :)Timo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@783 dbcabf3a-b0e7-0310-adc4-f8d773084564
2000-09-27net_gethostbyaddr() fixed.Timo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@685 dbcabf3a-b0e7-0310-adc4-f8d773084564
2000-07-29send() - ignore EPIPE return value and just return "0 bytes sent". The brokenTimo Sirainen
connection will be noticed after recv(). git-svn-id: http://svn.irssi.org/repos/irssi/trunk@547 dbcabf3a-b0e7-0310-adc4-f8d773084564
2000-07-16Cleaned up code.Timo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@480 dbcabf3a-b0e7-0310-adc4-f8d773084564
2000-07-10Enabled lots of GCC warnings, fixed those that were easy to fix.Timo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@456 dbcabf3a-b0e7-0310-adc4-f8d773084564
2000-07-02"Temporary error in nameserver" shouldn't remove server reconnections.Timo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@412 dbcabf3a-b0e7-0310-adc4-f8d773084564
2000-06-30Removed some warning messages.Timo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@403 dbcabf3a-b0e7-0310-adc4-f8d773084564
2000-06-06Use INADDR_BROADCAST if INADDR_NONE isn't defined.Timo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@300 dbcabf3a-b0e7-0310-adc4-f8d773084564
2000-05-25Didn't compile with IPv6 support.Timo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@242 dbcabf3a-b0e7-0310-adc4-f8d773084564
2000-05-25Added bot plugin, it also has almost-functional botnet.Timo Sirainen
Changed configure.in's functionality so that you could tell what modules you want to build in main irssi binary and it will create automatically the .c files that need to call the module_init()/deinit() functions. Fixed several minor things.. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@230 dbcabf3a-b0e7-0310-adc4-f8d773084564
2000-04-26..adding new files..Timo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@171 dbcabf3a-b0e7-0310-adc4-f8d773084564