[Implemented] Case 4 in NetWorkClientEvent

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

[Implemented] Case 4 in NetWorkClientEvent

Post by BackupUser »

Restored from previous forum. Originally posted by pbdep.


Hello PB Team,

Im missing an NetWorkClientEvent() Case 4 ?

For the client its also very important that
it knows that the remote server hungup!

So a "Case 4" (like networkserverevent has for client hungup)
would be usefull ifnot highly needed for the client site too.

Or is it already there? :)

Regards,
Norman.
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by waffle.

because of the way fred set up networking code,
lean and mean, you have to check for that yourself by "pinging"
the server from time to time. I generally do that whenever no messages have been received for say 5 seconds. If after say 10 pings without a "pong", assume a disconnect.
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by pbdep.
Originally posted by waffle

because of the way fred set up networking code,
lean and mean, you have to check for that yourself by "pinging"
the server from time to time. I generally do that whenever no messages have been received for say 5 seconds. If after say 10 pings without a "pong", assume a disconnect.
Hello Waffle,

I cant emagine that Fred does not want good IO checking, when
implementing it for the server it must be there for Client as well.

Its not-done to think that Socket traffic is controlled by
a ping :wink: The Data that goes to the remote is already the check!
and remote session hunup should be checked! Weather using PB Network connection for MultiGaming of Real Utils it must the there.

I did a lot!! I meen realy a lot of socket programming
and I miss this part of the code.

There are only 3 important IP/TCP network parts missing right now
in PureBasic.

* Get incoming client ip address
* Get incoming client ip port
* Check remote-hungup on client send connection (Case 4)

When Fred implements the Above (and that realy not difficult)
then PB can compete with C /TCL / Rebol or other Basic languages.

Anyway I realy hope Fred puts his mind over it, I can asure him
that a good Network Library will bring more people towards PB!
And will for sure give PB a professional look!

Thanks, Greetings..Norman.
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by tranquil.
Originally posted by pbdep


Hello PB Team,

Im missing an NetWorkClientEvent() Case 4 ?

For the client its also very important that
it knows that the remote server hungup!

So a "Case 4" (like networkserverevent has for client hungup)
would be usefull ifnot highly needed for the client site too.

Or is it already there? :)

Regards,
Norman.
I want to warn you to handle NetworkEvents CORRECTLY. :) Or does WSAAsyncSelect_() works correctly for you if you resize or move your window arround!? All network events get lost in our sources, but only network ones. All others are available. hm...

Tranquilizer/ Secretly!
http://www.secretly.de
Registred PureBasic User
System: Windows 2000 Server, 512 MB Ram, GeForce4200 TI 128 MB DDR, Hercules Theater 6.1 DTS Sound
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by pbdep.
Originally posted by tranquil
Originally posted by pbdep


Hello PB Team,

Im missing an NetWorkClientEvent() Case 4 ?

For the client its also very important that
it knows that the remote server hungup!

So a "Case 4" (like networkserverevent has for client hungup)
would be usefull ifnot highly needed for the client site too.

Or is it already there? :)

Regards,
Norman.
I want to warn you to handle NetworkEvents CORRECTLY. :) Or does WSAAsyncSelect_() works correctly for you if you resize or move your window arround!? All network events get lost in our sources, but only network ones. All others are available. hm...

Tranquilizer/ Secretly!
http://www.secretly.de
Registred PureBasic User
System: Windows 2000 Server, 512 MB Ram, GeForce4200 TI 128 MB DDR, Hercules Theater 6.1 DTS Sound
Hi Tranquil,

Im lost? What do you meen?

Im only talking about standard-PB procedure enhancement inside PB
for the programmer.

Uhum..Im not a windows API programmer.. cant compete :)

Greetings,
Norman.
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by fred.

I will add this. Thanks for the suggestions !

Fred - AlphaSND
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by pbdep.
Originally posted by fred

I will add this. Thanks for the suggestions !

Fred - AlphaSND
Hello Fred,

Great ! :)

Greetings,
Norman.
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by tinman.

/PING!

Just realised I would also like to ask for this to be added :)


--
I used to be a nihilist but I don't believe in that any more.
(Win98first ed. + all updates, PB3.51, Ed3.53)
Shannara
Addict
Addict
Posts: 1808
Joined: Thu Oct 30, 2003 11:19 pm
Location: Emerald Cove, Unformed

Post by Shannara »

BackupUser wrote:<i>Restored from previous forum. Originally posted by <b>fred</b>.</i><br /><br /> I will add this. Thanks for the suggestions !<br /><br />Fred - AlphaSND<br />
Several versions later.... it is still not implimented. I know there is a quick hack to support this, but native support would be cleaner.
Post Reply