| View previous topic :: View next topic |
| Author |
Message |
emoD Voice
Joined: 17 Mar 2008 Posts: 5
|
Posted: Mon Mar 17, 2008 10:21 am Post subject: UDP Sockets |
|
|
Hello,
I Have Problem. Searched Google, Looked At Manuals And At Scripts.
I Can't Find Clear Explanation Of UDP Sockets, Like:
1. How I Can Open It. (Found I Think 'udp_open')
2. How I Can Send Data To Socket.
3. How I Can Get Data From Socket.
4. Close Socket. (Found I Think 'close')
This Functions Will Be Used To Communicate With CS Server.
I Know You Suggest To Use Module Like RCON.
But I Need To Open Sockets Without Modules And Communicate.
Script Usage:
Do Restart To Server.
Change Password.
Change Map.
And Others... |
|
| Back to top |
|
 |
nml375 Revered One
Joined: 04 Aug 2006 Posts: 2857
|
Posted: Mon Mar 17, 2008 10:31 am Post subject: |
|
|
Tcl does not provide access to udp-sockets, so you'll have to go for writing either a tcl or an eggdrop module. _________________ NML_375, idling at #eggdrop@IrcNET |
|
| Back to top |
|
 |
emoD Voice
Joined: 17 Mar 2008 Posts: 5
|
Posted: Mon Mar 17, 2008 10:41 am Post subject: |
|
|
| Do You Know Basic UDP Module With Those Functions I Meant Before |
|
| Back to top |
|
 |
nml375 Revered One
Joined: 04 Aug 2006 Posts: 2857
|
Posted: Mon Mar 17, 2008 11:00 am Post subject: |
|
|
The Tcl UDP extension available at sourceforge might be an option, although I haven't tried it myself.
Reading from it's docs however, it seems to support most common options and flags, and presents it to tcl as an open file descriptor (like open and socket).
You'll find it at http://tcludp.sourceforge.net/ _________________ NML_375, idling at #eggdrop@IrcNET |
|
| Back to top |
|
 |
user

Joined: 18 Mar 2003 Posts: 1452 Location: Norway
|
Posted: Mon Mar 17, 2008 11:01 am Post subject: |
|
|
http://wiki.tcl.tk/8493 _________________ Have you ever read "The Manual"? |
|
| Back to top |
|
 |
emoD Voice
Joined: 17 Mar 2008 Posts: 5
|
Posted: Mon Mar 17, 2008 11:31 am Post subject: |
|
|
I Can't Find Usage On Windrop.
1. I Can't Load udp108.dll
2. I Can't Load Any Extra Module On Windrop! |
|
| Back to top |
|
 |
DragnLord Owner

Joined: 24 Jan 2004 Posts: 711 Location: C'ville, Virginia, USA
|
Posted: Mon Mar 17, 2008 12:06 pm Post subject: |
|
|
| emoD wrote: | I Can't Find Usage On Windrop.
1. I Can't Load udp108.dll
2. I Can't Load Any Extra Module On Windrop! |
These forums deal mostly with TCL usage on standard eggdrop. For windrop I suggest posting on their forum. |
|
| Back to top |
|
 |
ultralord Master

Joined: 06 Nov 2006 Posts: 255
|
Posted: Wed Jul 02, 2008 3:20 am Post subject: |
|
|
i found this.. but doenst working.. if someone fix it.. i need this too
| Code: | proc srv_cmd1 {n u h c t} {
global lastbind chan rcon_path rcon_password rcon_address rcon_port rcon_path2 rcon_password2 rcon_address2 rcon_port2
if { [string tolower $c] == $chan || $chan == "" } {
if { $lastbind == "!pass-1" } {
set cmd "sv_password $t"
do_rcon1 $c $cmd
}
if { $lastbind == "!pass-3" } {
set cmd "sv_password $t"
do_rcon3 $c $cmd
}
if { $lastbind == "!pass-5" } {
set cmd "sv_password $t"
do_rcon5 $c $cmd
}
if { $lastbind == "!pass-6" } {
set cmd "sv_password $t"
do_rcon6 $c $cmd
}
if { $lastbind == "!pass-4" } {
set cmd "sv_password $t"
do_rcon4 $c $cmd
}
if { $lastbind == "!pass-2" } {
set cmd "sv_password $t"
do_rcon2 $c $cmd
}
}
}
|
|
|
| Back to top |
|
 |
|