Raised This Month: $32 Target: $400
 8% 

[EXTENSION] Socket (3.0.1)


Post New Thread Reply   
 
Thread Tools Display Modes
bl4nk
SourceMod Developer
Join Date: Jul 2007
Old 08-28-2008 , 15:02   Re: [EXTENSION] Socket (2.4.0beta+2.1)
Reply With Quote #51

Quote:
Originally Posted by sfPlayer View Post
These errors are not related to the extension, please ask the extension author for a fix. IRC-Relay doesn't have reconnect functionality in the latest version.

I updated the attached extension to the latest beta which runs much better than the previous stable version.
You mean "ask the plugin author for a fix".
bl4nk is offline
DJ Tsunami
DJ Post Spammer
Join Date: Feb 2008
Location: The Netherlands
Old 09-05-2008 , 10:00   Re: [EXTENSION] Socket (2.4.0beta+2.1)
Reply With Quote #52

Why are the dll and so in the plugins folder in the zip if this is an extension? Should be in the extensions folder. And the examples are also missing.
__________________
Advertisements | REST in Pawn - HTTP client for JSON REST APIs
Please do not PM me with questions. Post in the plugin thread.
DJ Tsunami is offline
sfPlayer
Senior Member
Join Date: Dec 2007
Location: Germany
Old 09-05-2008 , 17:10   Re: [EXTENSION] Socket (2.4.0beta+2.1)
Reply With Quote #53

fixed, sorry for any inconvenience
sfPlayer is offline
Sipi
Member
Join Date: Sep 2007
Old 09-22-2008 , 16:34   Re: [EXTENSION] Socket (2.4.0beta+2.1)
Reply With Quote #54

Hi there!

I compiled the plugins (without editing) so the IRCRelay could work, but this turned up in the screen/log:
Code:
L 09/22/2008 - 22:25:26: [SOCKET] [Debug] SocketCreate: Socket created (socket 0xa7dca730) (handle -1365762886)
L 09/22/2008 - 22:25:26: [SOCKET] [Debug] SocketBind: bind() successful (socket 0xa7dca730)
L 09/22/2008 - 22:25:26: [SOCKET] [Debug] SocketListen: listen() successful (socket 0xa7dca730)
L 09/22/2008 - 22:25:26: [SOCKET] [Debug] SocketCreate: Socket created (socket 0xa908dce0) (handle -1365697349)
L 09/22/2008 - 22:25:26: [SOCKET] [Debug] SocketRecvThread: accept() successful, created child socket (parent 0xa7dca730) (child 0xc685000) (child handle -1365566276)
L 09/22/2008 - 22:25:26: [SOCKET] [Debug] ConnectThread: connect() successful (socket 0xa9278c08)
L 09/22/2008 - 22:25:26: [SM] Native "SocketBind" reported: Invalid handle: 27853222
L 09/22/2008 - 22:25:26: [SM] Displaying call stack trace for plugin "irc-relay-core.smx":
L 09/22/2008 - 22:25:26: [SM]   [0]  Line 678, irc-relay-core.sp::OnConfigsExecuted()
L 09/22/2008 - 22:25:28: [SOCKET] [Debug] ConnectThread: connect() successful (socket 0xa908dce0)
L 09/22/2008 - 22:25:29: [SOCKET] [Debug] Callbacks: executing incoming callback 0xb263218 (socket 0xa7dca730) (handle -1365762886) (socket2 0xc685000) (handle2 -1365566276)
L 09/22/2008 - 22:25:29: [SOCKET] [Debug] SocketRecvThread: send[to]() successful, sent 12 bytes (socket 0xc685000)
L 09/22/2008 - 22:25:29: [SOCKET] [Debug] SocketRecvThread: sendqueue empty (socket 0xc685000)
L 09/22/2008 - 22:25:29: [SOCKET] [Debug] SocketRecvThread: recv() successful, received 12 bytes (socket 0xa908dce0)
L 09/22/2008 - 22:25:30: [SOCKET] [Debug] Callbacks: executed incoming callback 0xb263218
L 09/22/2008 - 22:25:30: [SOCKET] [Debug] Callbacks: executing connect callback 0xadb500c0 (socket 0xa9278c08) (handle -1365959497)
L 09/22/2008 - 22:25:30: [SOCKET] [Debug] Callbacks: executed connect callback 0xadb500c0
L 09/22/2008 - 22:25:30: [SOCKET] [Debug] SocketRecvThread: send[to]() successful, sent 71 bytes (socket 0xa9278c08)
L 09/22/2008 - 22:25:30: [SOCKET] [Debug] SocketRecvThread: sendqueue empty (socket 0xa9278c08)
L 09/22/2008 - 22:25:30: [SOCKET] [Debug] Callbacks: executing connect callback 0x9fdae58 (socket 0xa908dce0) (handle -1365697349)
L 09/22/2008 - 22:25:30: [SOCKET] [Debug] Callbacks: executed connect callback 0x9fdae58
L 09/22/2008 - 22:25:30: [SOCKET] [Debug] Callbacks: executing receive callback 0xb142fe0 (socket 0xa908dce0) (handle -1365697349)
L 09/22/2008 - 22:25:30: [SOCKET] [Debug] Callbacks: executed receive callback 0xb142fe0
L 09/22/2008 - 22:25:30: [SOCKET] [Debug] Callbacks: executing sendqueue empty callback 0xac4aba88 (socket 0xc685000) (handle -1365566276)
L 09/22/2008 - 22:25:30: [SOCKET] [Debug] OnHandleDestroy: run destruction thread (socket 0xc685000)
L 09/22/2008 - 22:25:30: [SOCKET] [Debug] Callbacks: executed sendqueue empty callback 0xac4aba88
L 09/22/2008 - 22:25:30: [SOCKET] [Debug] SocketRecvThread: recv() successful, received 1448 bytes (socket 0xa9278c08)
L 09/22/2008 - 22:25:30: [SOCKET] [Debug] SocketRecvThread: recv() successful, received 1448 bytes (socket 0xa9278c08)
L 09/22/2008 - 22:25:30: [SOCKET] [Debug] Callbacks: executing receive callback 0xae45498 (socket 0xa9278c08) (handle -1365959497)
L 09/22/2008 - 22:25:30: [SOCKET] [Debug] Callbacks: executed receive callback 0xae45498
L 09/22/2008 - 22:25:30: [SOCKET] [Debug] Callbacks: executing receive callback 0x9ba4668 (socket 0xa9278c08) (handle -1365959497)
L 09/22/2008 - 22:25:30: [SOCKET] [Debug] Callbacks: executed receive callback 0x9ba4668
L 09/22/2008 - 22:25:30: [SOCKET] [Debug] SocketRecvThread: recv() successful, received 1448 bytes (socket 0xa9278c08)
L 09/22/2008 - 22:25:30: [SOCKET] [Debug] SocketRecvThread: recv() successful, received 4095 bytes (socket 0xa9278c08)
L 09/22/2008 - 22:25:30: [SOCKET] [Debug] SocketRecvThread: recv() successful, received 249 bytes (socket 0xa9278c08)
L 09/22/2008 - 22:25:30: [SOCKET] [Debug] Callbacks: executing receive callback 0x8cd3f68 (socket 0xa9278c08) (handle -1365959497)
L 09/22/2008 - 22:25:30: [SOCKET] [Debug] Callbacks: executed receive callback 0x8cd3f68
L 09/22/2008 - 22:25:30: [SOCKET] [Debug] Callbacks: executing receive callback 0xab3af80 (socket 0xa9278c08) (handle -1365959497)
L 09/22/2008 - 22:25:30: [SOCKET] [Debug] Callbacks: executed receive callback 0xab3af80
L 09/22/2008 - 22:25:30: [SOCKET] [Debug] Callbacks: executing receive callback 0xadf6738 (socket 0xa9278c08) (handle -1365959497)
L 09/22/2008 - 22:25:30: [SOCKET] [Debug] Callbacks: executed receive callback 0xadf6738
L 09/22/2008 - 22:25:30: [SOCKET] [Debug] SocketRecvThread: recv() successful, received 1448 bytes (socket 0xa9278c08)
L 09/22/2008 - 22:25:30: [SOCKET] [Debug] Socket closed (socket 0xc685000)
L 09/22/2008 - 22:25:30: [SOCKET] [Debug] SocketRecvThread: recv() successful, received 4095 bytes (socket 0xa9278c08)
L 09/22/2008 - 22:25:30: [SOCKET] [Debug] HandleDestructionThread: Socket destroyed (socket 0xc685000)
L 09/22/2008 - 22:25:30: [SOCKET] [Debug] SocketRecvThread: recv() signalled disconnect, aborting (socket 0xa908dce0)
L 09/22/2008 - 22:25:30: [SOCKET] [Debug] Socket closed (socket 0xa908dce0)
L 09/22/2008 - 22:25:30: [SOCKET] [Debug] SocketRecvThread: recv() successful, received 2711 bytes (socket 0xa9278c08)
L 09/22/2008 - 22:25:30: [SOCKET] [Debug] SocketRecvThread: recv() signalled disconnect, aborting (socket 0xa9278c08)
L 09/22/2008 - 22:25:30: [SOCKET] [Debug] Socket closed (socket 0xa9278c08)
L 09/22/2008 - 22:25:30: [SOCKET] [Debug] Callbacks: executing receive callback 0xb710d38 (socket 0xa9278c08) (handle -1365959497)
L 09/22/2008 - 22:25:30: [SOCKET] [Debug] Callbacks: executed receive callback 0xb710d38
L 09/22/2008 - 22:25:30: [SOCKET] [Debug] Callbacks: executing receive callback 0xb657c38 (socket 0xa9278c08) (handle -1365959497)
L 09/22/2008 - 22:25:30: [SOCKET] [Debug] Callbacks: executed receive callback 0xb657c38
L 09/22/2008 - 22:25:30: [SOCKET] [Debug] Callbacks: executing disconnect callback 0xb9f73e8 (socket 0xa908dce0) (handle -1365697349)
L 09/22/2008 - 22:25:30: [SOCKET] [Debug] OnHandleDestroy: run destruction thread (socket 0xa908dce0)
L 09/22/2008 - 22:25:30: [SOCKET] [Debug] Callbacks: executed disconnect callback 0xb9f73e8
L 09/22/2008 - 22:25:30: [SOCKET] [Debug] Callbacks: executing receive callback 0xa7168b8 (socket 0xa9278c08) (handle -1365959497)
L 09/22/2008 - 22:25:30: [SOCKET] [Debug] Callbacks: executed receive callback 0xa7168b8
L 09/22/2008 - 22:25:30: [SOCKET] [Debug] Callbacks: executing disconnect callback 0xa42b678 (socket 0xa9278c08) (handle -1365959497)
L 09/22/2008 - 22:25:30: [SOCKET] [Debug] OnHandleDestroy: run destruction thread (socket 0xa9278c08)
L 09/22/2008 - 22:25:30: [SOCKET] [Debug] Callbacks: executed disconnect callback 0xa42b678
L 09/22/2008 - 22:25:34: [SOCKET] [Debug] HandleDestructionThread: Socket destroyed (socket 0xa908dce0)
L 09/22/2008 - 22:25:34: [SOCKET] [Debug] HandleDestructionThread: Socket destroyed (socket 0xa9278c08)
L 09/22/2008 - 22:30:23: [SOCKET] [Debug] OnHandleDestroy: run destruction thread (socket 0xaa0a90f0)
L 09/22/2008 - 22:30:23: [SOCKET] [Debug] OnHandleDestroy: run destruction thread (socket 0xa7dca730)
L 09/22/2008 - 22:30:23: [SOCKET] [Debug] Socket closed (socket 0xaa0a90f0)
L 09/22/2008 - 22:30:23: [SOCKET] [Debug] HandleDestructionThread: Socket destroyed (socket 0xaa0a90f0)
L 09/22/2008 - 22:30:23: [SOCKET] [Debug] Socket closed (socket 0xa7dca730)
L 09/22/2008 - 22:30:23: [SOCKET] [Debug] HandleDestructionThread: Socket destroyed (socket 0xa7dca730)
L 09/22/2008 - 22:30:23: [SOCKET] [Debug] Extension unloaded
Sipi is offline
InflatableSoulmate
Senior Member
Join Date: Oct 2008
Location: *.mdmp
Old 10-21-2008 , 22:32   Re: [EXTENSION] Socket (2.4.0beta+2.1)
Reply With Quote #55

I'm writing a plugin similar to the IRC relay plugin, except that all the information is sent via an eggdrop bot instead of the plugin connecting directly to IRC.

I am having problems, however, with server crashes, and it seems that the reason behind these crashes is that the plugin is attempting to send something after the connection is unexpectedly lost. I have a single private function that is called for everything that is sent to the eggdrop, and I check that the socket is connected before attempting to send the data, but SocketIsConnected reports an invalid handle was referenced (though not INVALID_HANDLE) right before the server throws an exception and dies. I use a global variable to store the handle of the socket so that in-game events can trigger the sending of information to the bot, but if the OnSocketDisconnect or OnSocketError callbacks are triggered, the handle is closed and the global variable is set to INVALID_HANDLE. The send function also checks that the handle called is not equal to INVALID_HANDLE before it checks SocketIsConnected().

Any ideas what could cause this? Or is there any way to make honest-to-god sure that the handle is a valid socket handle?
InflatableSoulmate is offline
sfPlayer
Senior Member
Join Date: Dec 2007
Location: Germany
Old 10-22-2008 , 08:49   Re: [EXTENSION] Socket (2.4.0beta+2.1)
Reply With Quote #56

Using invalid handles shouldn't crash the server, it usually just aborts the calling function and displays a short error message.

I need some more information to investigate the issues you are experiencing, please send me your code, the console output with SocketSetOption(INVALID_HANDLE, DebugMode, 1) and probably srcds' debug.log (+debug @command line).

Don't expect a response too quickly, my internet connection is currently limited to gprs (~5 kB/s).
sfPlayer is offline
Sipi
Member
Join Date: Sep 2007
Old 10-22-2008 , 14:47   Re: [EXTENSION] Socket (2.4.0beta+2.1)
Reply With Quote #57

Quote:
Originally Posted by sfPlayer View Post
Don't expect a response too quickly, my internet connection is currently limited to gprs (~5 kB/s).
Do you have any tip for my problem?
Sipi is offline
koshmel
Member
Join Date: Nov 2008
Old 11-09-2008 , 13:15   Re: [EXTENSION] Socket (2.4.0beta+2.1)
Reply With Quote #58

Can someone teel me? what is wrong?
need load data from file(more then 1 mb). and send it
but it doesn't work :'(
Pls find error
Attached Files
File Type: rar test.rar (3.7 KB, 181 views)
koshmel is offline
KillerSneak
Member
Join Date: Feb 2008
Old 11-11-2008 , 12:58   Re: [EXTENSION] Socket (2.4.0beta+2.1)
Reply With Quote #59

Why is it that none of the Plugin makers can write a decent tutorial on how to install and use their plugins?

I really don't know how to install / use this in condjunction with KAC (who recommends/needs using this)

Can someone help me out here as i want KAC to run as Anti-Cheat but it won't run without this plugin so it seems i need it but can't find any documentation what so ever on how to install/use it.
KillerSneak is offline
bl4nk
SourceMod Developer
Join Date: Jul 2007
Old 11-12-2008 , 12:52   Re: [EXTENSION] Socket (2.4.0beta+2.1)
Reply With Quote #60

There's no instructions needed really. You download the zip file, and extract it inside of your mod folder, and you're done.
bl4nk is offline
Reply



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 18:46.


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