egghelp.org community Forum Index
[ egghelp.org home | forum home ]
egghelp.org community
Discussion of eggdrop bots, shell accounts and tcl scripts.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

UDP Sockets

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Scripting Help
View previous topic :: View next topic  
Author Message
emoD
Voice


Joined: 17 Mar 2008
Posts: 5

PostPosted: Mon Mar 17, 2008 10:21 am    Post subject: UDP Sockets Reply with quote

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
View user's profile Send private message
nml375
Revered One


Joined: 04 Aug 2006
Posts: 2857

PostPosted: Mon Mar 17, 2008 10:31 am    Post subject: Reply with quote

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
View user's profile Send private message
emoD
Voice


Joined: 17 Mar 2008
Posts: 5

PostPosted: Mon Mar 17, 2008 10:41 am    Post subject: Reply with quote

Do You Know Basic UDP Module With Those Functions I Meant Before
Back to top
View user's profile Send private message
nml375
Revered One


Joined: 04 Aug 2006
Posts: 2857

PostPosted: Mon Mar 17, 2008 11:00 am    Post subject: Reply with quote

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
View user's profile Send private message
user
 


Joined: 18 Mar 2003
Posts: 1452
Location: Norway

PostPosted: Mon Mar 17, 2008 11:01 am    Post subject: Reply with quote

http://wiki.tcl.tk/8493
_________________
Have you ever read "The Manual"?
Back to top
View user's profile Send private message
emoD
Voice


Joined: 17 Mar 2008
Posts: 5

PostPosted: Mon Mar 17, 2008 11:31 am    Post subject: Reply with quote

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
View user's profile Send private message
DragnLord
Owner


Joined: 24 Jan 2004
Posts: 711
Location: C'ville, Virginia, USA

PostPosted: Mon Mar 17, 2008 12:06 pm    Post subject: Reply with quote

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
View user's profile Send private message
ultralord
Master


Joined: 06 Nov 2006
Posts: 255

PostPosted: Wed Jul 02, 2008 3:20 am    Post subject: Reply with quote

i found this.. but doenst working.. if someone fix it.. i need this too Razz

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Scripting Help All times are GMT - 4 Hours
Page 1 of 1

 
Jump to:  
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


Forum hosting provided by Reverse.net

Powered by phpBB © 2001, 2005 phpBB Group
subGreen style by ktauber