LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   how to modify codes in a program? (https://www.linuxquestions.org/questions/linux-software-2/how-to-modify-codes-in-a-program-123815/)

timberwolf 12-08-2003 07:04 AM

how to modify codes in a program?
 
Hi, i sent an email to the developer of aMSN as i wanted to change the time where a dummy package is sent for the 'keepalive' option. The details of his email to me is shown as below.

---------------------------------------------------------------------------------------------------
You can modify the code for the keepalive :
In file protocol.tcl :

line 1014:

proc StartPolling {} {
global config

if {($config(keepalive) == 1) && ($config(connectiontype) == "direct")} {
after cancel "::MSN::PollConnection"
after 60000 "::MSN::PollConnection"
} else {
after cancel "::MSN::PollConnection"
}
}

That line after 60000 "::MSN::PollConnection" says that it has to wait 60000ms . You can modify this to any value you wish.

---------------------------------------------------------------------------------------------------

I would like to ask you guys how can i go about modifying the codes as he said?

Your help is greatly appreciated,

-Timberwolf a.k.a Aquila

MartinN 12-08-2003 07:21 AM

Since tcl is a scripting language (no need to compile):

Open the file in your text editor of choice (possibly need to be root). Change that value. Save.

Regards
Martin


All times are GMT -5. The time now is 04:25 AM.