Recent activity
Subscribe to this feed
T-bone replied on September 02, 2008 01:02 to the question "Why doesnt the on_sock_data_arrival fire when there is an inbound http request?" in Tibbo:
Hiya!
It us because if you use sock.httpmode = YES, this means that HTTP requests to the port that you specified will be handled internally and will not cause the the on_sock_data_arrival event to fire.
If you wish to handle the HTTP requests by your own, you will need to use the socket as regular type of socket and basically write all the needed handling routines.
fjhamming asked a question in Tibbo on August 15, 2008 15:30:
Why doesnt the on_sock_data_arrival fire when there is an inbound http request?When i read the on_sock_data_arrival event, it fires perfectly on the smtp and netbios events, but if i post a http request to the device, this function doesnt notice. Why is this? By reading this event i could implement security in my web application, but this way, the only login method i know is to post the sessionid in the GET section of the HTTP request.
I'd defenately want to read the whole http request, so maybe i can use cookies or read the browsers version or just anything to increase security.
sub on_sock_data_arrival
if sock.localport = 80 then
doevents
'do something with the http header or something
end if
end sub
fjhamming replied on August 14, 2008 16:06 to the problem "HTML files stop executing randomly" in Tibbo:
fjhamming reported a problem in Tibbo on August 11, 2008 11:10:
HTML files stop executing randomlyI have two files with this exact code:
<? include "global.tbh"
file_to_socket(sock.num,"html_top.html")
?>
klik op een item aan de linkerkant om de juiste instellingen te doen.
<? include "global.tbh"
doevents
file_to_socket(sock.num,"html_bottom.html")
?>
I have a breakpoint at the doevents statement in the second part of the code just before the next file_to_socket function.
Somehow, one of these files does reach the breakpoint (and thus displays the footer on the website) but all the other files dont reach this point, but just break before the second part of code statements.
I dont get why, except different filenames, there should be a difference.
T-bone replied on August 11, 2008 08:03 to the question "Why is the transfer speed for my webserver so low on the em1000ev?" in Tibbo:
fjhamming replied on August 11, 2008 07:34 to the question "Why is the transfer speed for my webserver so low on the em1000ev?" in Tibbo:
T-bone replied on August 11, 2008 01:13 to the question "Why is the transfer speed for my webserver so low on the em1000ev?" in Tibbo:
fjhamming replied on August 08, 2008 10:57 to the question "Why is the transfer speed for my webserver so low on the em1000ev?" in Tibbo:
I tried remaking my whole application, based on the button_led app, and i'm using this code to create more sockets. Are there errors in the code?
'this event_handler is fired every time when the system starts
sub on_sys_init
'set sock 1 for web control
for f = 8 to 15
sock.num = f
'request buff space for web connection
sock.rxbuffrq(1)
sock.txbuffrq(1)
sock.varbuffrq(1)
sock.protocol=PL_SOCK_PROTOCOL_TCP
sock.httpmode=YES
sock.inconmode=PL_SOCK_INCONMODE_ANY_IP_ANY_PORT
sock.httpportlist="80"
net.ip = "192.168.2.107"
sys.buffalloc
next
end sub
when calling the direct link to an image via a download manager i still get only about 1 KB/s
fjhamming replied on August 06, 2008 09:32 to the question "Why is the transfer speed for my webserver so low on the em1000ev?" in Tibbo:
sub initHttpSockets(byval firstHttpSocket as byte,
byval lastHttpSocket as byte)
dim i as byte
dim sock1, sock2 as byte
'controleren of de opgegeven http-sockets binnen het bereik vallen
'er zijn 16 sockets dus het bereik is 0 - 15.
sock1=getsocket(firsthttpsocket)
sock2=getsocket(lasthttpsocket)
for i=sock1 to sock2
'set sock i for web control
sock.num = i
'request buff space for web connection
sock.rxbuffrq(1)
sock.txbuffrq(1)
sock.varbuffrq(1)
sock.protocol=PL_SOCK_PROTOCOL_TCP
sock.httpmode=YES
sock.inconmode=PL_SOCK_INCONMODE_ANY_IP_ANY_PORT
sock.httpportlist="80"
next i
sys.buffalloc
end sub
i call this function with:
inithttpsockets(3,15)
further, i use several other sockets (for dhcp and netbios)
ezuk replied on August 06, 2008 06:05 to the question "Why is the transfer speed for my webserver so low on the em1000ev?" in Tibbo:
fjhamming asked a question in Tibbo on August 05, 2008 13:00:
Why is the transfer speed for my webserver so low on the em1000ev?Why is the transfer speed for images so low? I am using over 8 sockets (i believe) but still get only 1 kbps. Is this the machine, or my code? (using the em1000-ev)-
fjhamming started following the question "Tide on Linux?" in Tibbo.
Loading Profile...

