Gnet Freezing
BlitzMax Forums/BlitzMax Beginners Area/Gnet Freezing
| ||
[[[[[[[[[[ THIS HAS BEEN RESOLVED ]]]]]]]]]]] Thanks anyways :) Problems with freezing! initially it wrks, but im testing the "what if a connection was cut off" this seems to leave GNET confused and pauses the HOST! i dont know how to stop this!? ''' DEDI-SERVER Global GameHost:TGNetHost = CreateGNetHost() Global me:TGNetObject If GNetListen(GameHost, 12346) '' Create Host Details me = CreateGNetObject(GameHost) SetGNetString me, 0, "HOSTING" SetGNetInt me, 1, 0 SetGNetInt me, 2, 0 'SetGNetString me, 1, " Else Notify "Not working" End EndIf Graphics 320, 800, 0 Local GY:Int While Not KeyHit(KEY_ESCAPE) GY = 0 GNetSync GameHost Cls For Local GNObj:TGNetObject = EachIn GNetObjects(GameHost, GNET_ALL) DrawText CurrentTime(), 155, 0 If GNObj.State() <> GNET_CLOSED If GNObj = me SetColor 255, 255, 0 Else SetColor 128, 128, 128 EndIf DrawText GetGNetString(GNObj, 0) + " (data:" + GetGNetInt(GNObj, 1) + GetGNetInt(GNObj, 1) + ")", 0, GY + 14 GY:+16 EndIf Next DrawText CurrentTime(), 0, 0 Flip Delay 1 Wend CloseGNetHost GameHost Last edited 2012 |
| ||
[[[[[[[[[[ THIS HAS BEEN RESOLVED ]]]]]]]]]]] Further explanations possible? bye Ron |