This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

dcc chat

Old posts that have not been replied to for several years.
Locked
O
Ofloo
Owner
Posts: 953
Joined: Tue May 13, 2003 1:37 am
Location: Belguim
Contact:

dcc chat

Post by Ofloo »

how do i create a dcc sesion not dcc chat for like party line !! but a dcc sesion like fore example for a file server ..

i know it's ctcp or something to do with it .. but how do i let it open a dcc session for script perphoses .. ??
XplaiN but think of me as stupid
p
ppslim
Revered One
Posts: 3914
Joined: Sun Sep 23, 2001 8:00 pm
Location: Liverpool, England

Post by ppslim »

To use a script, you need to use the listen command to open a port for a script.

You pass this command a third argument which states which script to use.

See tcl-commands.doc for further information on it.

As for making a DCC session (by the way, it is a DCC chat), you do need a CTCP command. The format is
\001DCC CHAT chat <formatted_IP> <port>\001
You replace the two items in <> with two seperate values.

For port, you use the port specified in the listen command.

For the formmated_IP, use the return value of the "myip" command.

It is a IP converted into a integer, the same as that used in the script I posted to test if a IP was from a private LAN.
User avatar
strikelight
Owner
Posts: 708
Joined: Mon Oct 07, 2002 10:39 am
Contact:

Post by strikelight »

If still unsure how to proceed, egghead has set up an example script
on his website I believe.
O
Ofloo
Owner
Posts: 953
Joined: Tue May 13, 2003 1:37 am
Location: Belguim
Contact:

Post by Ofloo »

just to see if i understand correctly i open a socket on a certain port and the user who wants to log on types
\001DCC CHAT chat <formatted_IP> <port>\001
XplaiN but think of me as stupid
p
ppslim
Revered One
Posts: 3914
Joined: Sun Sep 23, 2001 8:00 pm
Location: Liverpool, England

Post by ppslim »

No, when making a DCC chat to somebody, that person is infact connecting to you, and not you to them.

Thus, when you initiate a DCC chat, you first open a listening port through which they can connect.

Next step, you send them a request using the CTCP message above. EG, if the port is 5689, you would use somthing like this in Tcl

Code: Select all

puthelp "PRIVMSG $nick :\001DCC CHAT chat [myip] 5689\001
This tells the user you wish to DCC chat. If they accept, then there client will attempt to make a connection to the IP sent in the message, to the port in the message (5689).
O
Ofloo
Owner
Posts: 953
Joined: Tue May 13, 2003 1:37 am
Location: Belguim
Contact:

Post by Ofloo »

ic so in a way i just need to do this

on ctcp dcc chat whatever

open socket on port and send reply myip and port ...?

well short description of course

tnx mate i think i understand :)
XplaiN but think of me as stupid
O
Ofloo
Owner
Posts: 953
Joined: Tue May 13, 2003 1:37 am
Location: Belguim
Contact:

Post by Ofloo »

hmm i couldn't figur out why to open a port if they you connect to them so i reread it all again and just to make sur i got it write

they send dcc chat request

you answer dcc chat chat myip port

and they connect to that funny_ip port write ?
XplaiN but think of me as stupid
p
ppslim
Revered One
Posts: 3914
Joined: Sun Sep 23, 2001 8:00 pm
Location: Liverpool, England

Post by ppslim »

OK.

Somthing needs clearing up here.

Do you wish to connect to them, or them to you?
O
Ofloo
Owner
Posts: 953
Joined: Tue May 13, 2003 1:37 am
Location: Belguim
Contact:

Post by Ofloo »

?? i wana create a dcc sesion to the bot but not on the party line a dcc session like party line but seperated from the party line ..

to create a dcc sesion for a seperate script like a dcc admin to a certain script

or to create a client interface like file server fserv
XplaiN but think of me as stupid
Locked