;) You just said, "this is for Tk_CreateEventHandler(tkwin, mask, proc, clientData)", right? That's C. You are not being clear at all. Maybe you should start over and explain more?
Well as u know i wana make services in tcl for my network .. thing is , i want it to be simular to eggdrop like scripting so if people wana script for it they don't have to learn an entire new set of commands and not have to edit hughe amount of code, sinds i don't know C i can't write a C driven service with a tcl plugin what i do know is a bit tcl php .. , so i wana use those to make a service that works with mysql, witch most people want and i want to make it so that people could add there own stuff if they want, cause these days there is a load of services but there not exactly what i expect them to be .. so .. if i would know C i would make it in C and make an interface but i don't so ..i got most of it just the version check on connect is a pain the proxy checking system
cause people have to be albe to script for it well then i have to make binds if you know what i mean caus other wize they have to work in my code witch can be verry tricky :p so i was wondering if i could replicate bind PUB bind MSG ... and so on
It's pretty easy to make a bind proc. Your bind proc has to have a global variable to store the binds in. When bind is called, it adds the proc arg to the proper list. Then you need some kind of callbind proc, and it will call each item in the proper list, using that same global variable. I'd use an array for the types of bind tables, and each entry in the array should be a list of procs that are bound to that table. Simple.
sorry i am not with u could u explain .. bit ?? or give an example i am not that technical but if i see the code i understand .. not that good with words :p hehe sorry