Page 1 of 1

[Implemented] More Client info from TCP

Posted: Fri Dec 20, 2002 12:07 pm
by BackupUser
Restored from previous forum. Originally posted by pbdep.


Hello PB Team,

I would like to have the follwing command,
(We realy need these for better networking)
I hope its also on your wishlist!

result.l = networkclientport() ; return current clientid ip port
result.l = networkclientaddress() ; returns current clienttd ip address

Kind Regards,
Norman.

Posted: Fri Dec 20, 2002 3:08 pm
by BackupUser
Restored from previous forum. Originally posted by waffle.

already implimented in version 3.4
fred did that really fast :)

the information is not reliable though....
see the topic on firewalls and NAT routers.

Posted: Fri Dec 20, 2002 3:39 pm
by BackupUser
Restored from previous forum. Originally posted by pbdep.
Originally posted by waffle

already implimented in version 3.4
fred did that really fast :)

the information is not reliable though....
see the topic on firewalls and NAT routers.
Hi,

Where is it? cant find it in the Forum.

Greetings,
Norman.

Posted: Fri Dec 20, 2002 3:56 pm
by BackupUser
Restored from previous forum. Originally posted by PB.

> Where is it? cant find it in the Forum.

I don't know much about networking, but perhaps you can find your
answer at this URL (hopefully):

http://www.purebasic.com/documentation/ ... index.html

If not, then I don't know, sorry.

BTW, when you say you want to get the Client IP Address, do you mean
the local machine's IP address, or the remote machine's IP address?
In other words, are you the server or client trying to get this info?

Posted: Fri Dec 20, 2002 4:12 pm
by BackupUser
Restored from previous forum. Originally posted by pbdep.
Originally posted by PB

> Where is it? cant find it in the Forum.

I don't know much about networking, but perhaps you can find your
answer at this URL (hopefully):

http://www.purebasic.com/documentation/ ... index.html

If not, then I don't know, sorry.

BTW, when you say you want to get the Client IP Address, do you mean
the local machine's IP address, or the remote machine's IP address?
In other words, are you the server or client trying to get this info?

I want PureBasic to be able to return to me the remote client IP/PORT
when the client connects towards my Server.

Right now there is no information beside the clientID (OS related counter)..

For better Server Client handling we need the remote IP/Port that
connects towards My PB-Server.

So that would be the need of (beside networkclientid())

Result1.w = networkclientport()
Result2.l = networkclientaddress()

Result1 will contain (0-65535)
Result2 will contain (Long presention of the remote IP address)


I hope the above a little more clear, IM not searching for the LOCAL ip im searching for the remote client(connected IP/port)

Regards,
Norman.

Posted: Fri Dec 20, 2002 5:02 pm
by BackupUser
Restored from previous forum. Originally posted by tranquil.
Originally posted by pbdep


Hello PB Team,

I would like to have the follwing command,
(We realy need these for better networking)
I hope its also on your wishlist!

result.l = networkclientport() ; return current clientid ip port
result.l = networkclientaddress() ; returns current clienttd ip address

Kind Regards,
Norman.
This is what you are aearching for:

viewtopic.php?t=2058">http://forums.pur ... ecretly.de
Registred PureBasic User
System: Windows 2000 Server, 512 MB Ram, GeForce4200 TI 128 MB DDR, Hercules Theater 6.1 DTS Sound

Posted: Fri Dec 20, 2002 5:37 pm
by BackupUser
Restored from previous forum. Originally posted by pbdep.
Originally posted by tranquil
Originally posted by pbdep


Hello PB Team,

I would like to have the follwing command,
(We realy need these for better networking)
I hope its also on your wishlist!

result.l = networkclientport() ; return current clientid ip port
result.l = networkclientaddress() ; returns current clienttd ip address

Kind Regards,
Norman.
This is what you are aearching for:

viewtopic.php?t=2058">http://forums.pur ... ecretly.de
Registred PureBasic User
System: Windows 2000 Server, 512 MB Ram, GeForce4200 TI 128 MB DDR, Hercules Theater 6.1 DTS Sound

Hello Tranquile,

Thanks for the reply..usefull link!

BUT Im a LINUX user :wink:

So i need a solution for both Linux and Windows, and i think
that the PB Team can simply build it far more efficient into ASM
from the LIB than I do in PB anyway :wink:

Also it should be standard delivered with Network programming part
of PB, Its far more faster not to focus on Where to search for the Bits and bytes but simply having a Command that does this for the user.

Basic is power like PureBasic! is for sure,
so let introduce and make PureBasic better!

My Wishlist:

NetWorkClientPort()
NetWorkClientAddr()

Greeting,
Norman.

Posted: Fri Dec 20, 2002 11:55 pm
by BackupUser
Restored from previous forum. Originally posted by waffle.

oops sorry, its in the help file, and it says for windows only.
You could start at the IP gadget thing, or look into the networking section. But still, PB assumes windows for those functions.

Posted: Sat Oct 09, 2004 6:18 pm
by Shannara
BackupUser wrote:<i>Restored from previous forum. Originally posted by <b>waffle</b>.</i><br /><br /> already implimented in version 3.4<br />fred did that really fast :)<br /><br />the information is not reliable though....<br />see the topic on firewalls and NAT routers.

Well, waffle claims that the following command are in PB? 3.4, but I cannot find them anywhere in the help file nor through jaPBe.. Anybody have any clues?

Code: Select all

result.l = networkclientport() ; return current clientid ip port
result.l = networkclientaddress() ; returns current clienttd ip address

Posted: Sat Oct 23, 2004 8:41 pm
by Shannara
*bump*

Posted: Mon Jan 10, 2005 12:36 pm
by P-J
Shannara wrote:Well, waffle claims that the following command are in PB? 3.4, but I cannot find them anywhere in the help file nor through jaPBe.. Anybody have any clues?
He's wrong. There are no 'native' commands. WinAPI is your only hope at the moment, and as we know, being a Linux user, this ain't much help to you :)