Raised This Month: $51 Target: $400
 12% 

[INC] Sockets Forwards


Post New Thread Reply   
 
Thread Tools Display Modes
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 06-18-2012 , 23:39   Re: [INC/MODULE] Sockets Forwards
Reply With Quote #31

Quote:
Originally Posted by OvidiuS View Post
Will linux version be fixed and released?
Quote:
Originally Posted by arqawa View Post
and linux version do not connecting to the server with error [115]
Code:
#define EINPROGRESS 115 /* Operation now in progress */
Javivi mentioned this back in January but I never investigated

I may have found a simple fix if all errors being returned are EINPROGRESS. Are you able to compile\test under Linux, OvidiuS?
__________________

Last edited by Bugsy; 06-19-2012 at 00:17.
Bugsy is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 06-19-2012 , 03:53   Re: [INC/MODULE] Sockets Forwards
Reply With Quote #32

Give the fix Bugsy, will compile/test.
__________________
Arkshine is offline
OvidiuS
Chillaxin'
Join Date: Dec 2009
Location: Serbia
Old 06-19-2012 , 04:25   Re: [INC/MODULE] Sockets Forwards
Reply With Quote #33

Quote:
Originally Posted by Bugsy View Post
Code:
#define EINPROGRESS 115 /* Operation now in progress */
Javivi mentioned this back in January but I never investigated

I may have found a simple fix if all errors being returned are EINPROGRESS. Are you able to compile\test under Linux, OvidiuS?
Yes i can test it on linux. Just post the code ;)
OvidiuS is offline
Send a message via Skype™ to OvidiuS
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 06-20-2012 , 00:38   Re: [INC/MODULE] Sockets Forwards
Reply With Quote #34

Thanks Arkshine and OvidiuS
Attached Files
File Type: zip Sockets2Module.zip (46.2 KB, 204 views)
__________________
Bugsy is offline
Javivi
AlliedModders Donor
Join Date: Dec 2008
Old 06-20-2012 , 05:54   Re: [INC/MODULE] Sockets Forwards
Reply With Quote #35

Quote:
Originally Posted by Bugsy View Post
Code:
#define EINPROGRESS 115 /* Operation now in progress */
Javivi mentioned this back in January but I never investigated

I may have found a simple fix if all errors being returned are EINPROGRESS. Are you able to compile\test under Linux, OvidiuS?


Thank you for the update!
__________________
Javivi is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 06-20-2012 , 15:47   Re: [INC/MODULE] Sockets Forwards
Reply With Quote #36

It doesn't seem to work properly under linux. "Test" works for sure. Server crashes and dies after a restart (more at the end of the restart, or start of the new map)

I attach the .so and the .cpp fixed for compilation under linux.

I would not against you provide a better example to see.
Attached Files
File Type: so sockets2_amxx_i386.so (23.4 KB, 190 views)
File Type: zip sockets2.zip (3.5 KB, 240 views)
__________________

Last edited by Arkshine; 06-20-2012 at 15:49.
Arkshine is offline
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 06-20-2012 , 18:41   Re: [INC/MODULE] Sockets Forwards
Reply With Quote #37

Quote:
Originally Posted by Arkshine View Post
It doesn't seem to work properly under linux. "Test" works for sure. Server crashes and dies after a restart (more at the end of the restart, or start of the new map)

I attach the .so and the .cpp fixed for compilation under linux.

I would not against you provide a better example to see.
Thanks Ark... does "Test" print without any error code? Maybe I need to look into the socket cleanup/initialization code if its crashing after map change.
__________________
Bugsy is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 06-20-2012 , 18:46   Re: [INC/MODULE] Sockets Forwards
Reply With Quote #38

"Test" is ok, no error.

"Connect" works too, at least, it doesn't return an error, but it doesn't return informations like does "Test" with google.com:80.

"Listen" seems to return always -1, 13 (or 11, don't remember). Probably because connection is closed.

"SendData", well, kind of useless without "Listen", but it doesn't throw errors.

A more practical example would be welcomed.
__________________
Arkshine is offline
joropito
AlliedModders Donor
Join Date: Mar 2009
Location: pfnAddToFullPack
Old 06-21-2012 , 09:41   Re: [INC/MODULE] Sockets Forwards
Reply With Quote #39

If crash becomes after restart, the problem should like a memory leak or something like that.
Maybe some static struct/variable is not freed.
__________________

Divide et vinces
approved plugins | steam account

I don't accept PM for support. Just ask on forums.
If you're looking for private work, PM me.
joropito is offline
Send a message via MSN to joropito
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 06-22-2012 , 22:25   Re: [INC/MODULE] Sockets Forwards
Reply With Quote #40

Getting this error on Windows test, I'm a C++ rookie, can anyone recommend a fix or what the potential cause is? Source is a few posts above.

I made 2 plugins, a server/client chat. I get the error as a connection is being made to the server by client plugin.
Attached Thumbnails
Click image for larger version

Name:	error.JPG
Views:	289
Size:	16.9 KB
ID:	105438  
__________________

Last edited by Bugsy; 06-22-2012 at 22:33.
Bugsy 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 14:23.


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