View previous topic :: View next topic |
Author |
Message |
fileplayer
Joined: 09 Nov 2005 Posts: 18 Location: 32339 Espelkamp
|
Posted: Wed Jan 11, 2006 9:12 am Post subject: Localport = ?? |
|
|
H@all
In the Config TCPIP Line is a Entry like this : ,Localport = 5000, .
If i try write the Line like this : ,Localport = IP, OR (only) , IP, (well the var IP is a word whit numeric formats of IP-Adress) allways the Compiler make a Error. is it posible to charce the Constants to a Var or not.
Can some give me Info abaut that ?
Thanks
Günter
PS: Sollte jemand aus Deutschland ebenso mit Easy TCP arbeiten, ist mir eine mail willkommen, können wir dann doch auf Deusch reden, und das kann ich viel besser. Meine Mail : GBEspelk01@aol.com _________________ Fileplayer |
|
Back to top |
|
|
bfdegraaff
Joined: 15 Nov 2005 Posts: 72 Location: Brazil
|
Posted: Wed Jan 11, 2006 11:38 am Post subject: |
|
|
Hello Günter,
Nice to hear from you, good news... it is possible to make the port number variable.
Dim Portnr As Word
Dim Stringport as string * 6
Stringport = "05000"
Portnr = Val(Stringport)
...
replace:
I = Getsocket(0 , Sock_stream , 5000 , 0) ' get a new socket
with:
I = Getsocket(0 , Sock_stream , Portnr , 0) ' get a new socket
____________________________^^^^
The Port number in Config Tcpip =.... is ignored
Hope to have helped you with this, (remember you met me once
@MCS Electronics)
Regards, Barry de Graaff _________________ ______
Barry de Graaff is a micro electronics student,
formerly on work emplacement at MCS Electronics.
www.barrydegraaff.tk/edb |
|
Back to top |
|
|
bfdegraaff
Joined: 15 Nov 2005 Posts: 72 Location: Brazil
|
Posted: Wed Jan 11, 2006 11:40 am Post subject: |
|
|
Und am Deutsch geht es auch, aber dann können nicht viel mensen das forum noch folgen und das preferier ich... _________________ ______
Barry de Graaff is a micro electronics student,
formerly on work emplacement at MCS Electronics.
www.barrydegraaff.tk/edb |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You cannot download files in this forum
|
|