Raised This Month: $ Target: $400
 0% 

Keeping socket open beyong map changes


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Horst Arnold
Junior Member
Join Date: Jan 2013
Old 01-27-2013 , 11:42   Keeping socket open beyong map changes
Reply With Quote #1

Hi,

so I'm using the default sockets module to create a TCP connection to an IRC server.

(The socket object is declared globally at the beginning of the script, the socked is opened in plugin_init() or via console command.)

Now when the map changes, apparently the entire plugin is reloaded, resulting in the socket being closed (?) and reopened on the next map.

How can I keep the socket open on map changes and maintain the connection continuously?

Obviously, I don't want to have the IRC bot reconnect whenever the map is changed.

Thank you for your input and any hints you can share with me.
Horst Arnold is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 20:31.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode