[Implemented] More Client info from TCP
-
- PureBasic Guru
- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
[Implemented] More Client info from TCP
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.
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.
-
- PureBasic Guru
- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
-
- PureBasic Guru
- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
-
- PureBasic Guru
- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
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?
> 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?
-
- PureBasic Guru
- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
Restored from previous forum. Originally posted by pbdep.
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.
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.
-
- PureBasic Guru
- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
Restored from previous forum. Originally posted by tranquil.
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
This is what you are aearching for: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.
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
-
- PureBasic Guru
- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
Restored from previous forum. Originally posted by pbdep.
Hello Tranquile,
Thanks for the reply..usefull link!
BUT Im a LINUX user
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
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.
Originally posted by tranquil
This is what you are aearching for: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.
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

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

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.
-
- PureBasic Guru
- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
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
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 youShannara 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?
