flat assembler
Message board for the users of flat assembler.

flat assembler > Linux > FreeBSD -> Linux

Author
Thread Post new topic Reply to topic
mike.dld



Joined: 03 Oct 2003
Posts: 235
Location: Belarus, Minsk
There's a FreeBSD IRC bot written by S.Lyubka & M.Tretjyakov. I was trying to port it to Linux, but since I'm not a Linux programmer and I was writing it with closed eyes sitting on Windows and testing with Line and though SSH access on another Linux PC, it's almost finished except it doesn't work properly. There're some problem with sockets functions and I certainly don't know how to solve them. If you have some free time and will to help, check the source out, please.


Description: Here's what I changed to run on Linux
Download
Filename: ircbot_linux.zip
Filesize: 18.55 KB
Downloaded: 226 Time(s)

Description: Original FreeBSD source code
Download
Filename: ircbot_freebsd.zip
Filesize: 8.67 KB
Downloaded: 210 Time(s)


_________________
http://ostin.googlecode.com/
Post 26 Jul 2005, 03:05
View user's profile Send private message Visit poster's website ICQ Number Reply with quote
Loplin



Joined: 13 Feb 2004
Posts: 19
Maybe a bump would get this noticed? Wink I have special interest in the outcome.

_________________
If I have a penny and you have a penny and we exchange pennies, we will both have one penny;but, if I have an idea and you have an idea and we exchange ideas, we will both have two ideas.

http://menuet.homelinux.net
Post 30 Jul 2005, 05:49
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger ICQ Number Reply with quote
ccrayne



Joined: 17 May 2005
Posts: 12
mike.dld wrote:
There're some problem with sockets functions . . .

The problem with the "connect" call is that the sockaddr_in structure should look like this:

sin_len: db 16 ; sizeof(sockaddr_in)

sockaddr_in:

sin_family: dw 2 ; AF_INET

sin_port: dw 0x0c1a ; htons(6667)

sin_addr: dd 0x411036c3 ; htonl(172.16.3.21)

sin_pad dq 0

With this change, the program was able to establish a connection with 195.54.16.65:6668, and receive the logon messages.

-- Chuck
Post 31 Jul 2005, 20:28
View user's profile Send private message Reply with quote
mike.dld



Joined: 03 Oct 2003
Posts: 235
Location: Belarus, Minsk
Thanks, man! That really helped.

_________________
http://ostin.googlecode.com/
Post 01 Aug 2005, 15:16
View user's profile Send private message Visit poster's website ICQ Number Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2019, Tomasz Grysztar.

Powered by rwasa.