Пікірлер
@jeanrodrigues6249
@jeanrodrigues6249 2 жыл бұрын
Ian
@matiasiglesias2653
@matiasiglesias2653 4 жыл бұрын
I´m using delphi tokyo 10.2.3, and i don´t find the components that you are using, where can I download?
@eyersadul
@eyersadul 5 жыл бұрын
Ty bro.. 🤗
@tolshinaemberkovich1039
@tolshinaemberkovich1039 5 жыл бұрын
Hi, for me the example doesn't work. I have Delphi 7.
@john_lm0751
@john_lm0751 6 жыл бұрын
doesn't work in delphi xe7. components and command statements do not exist.
@YocoyaniBUAP
@YocoyaniBUAP 6 жыл бұрын
Thanks a lot, its nice !
@anjavalia1257
@anjavalia1257 6 жыл бұрын
пыдкажыть
@anjavalia1257
@anjavalia1257 6 жыл бұрын
а на паскаы таке можна написати
@LoganCale
@LoganCale 7 жыл бұрын
Very nice !
@woodbright850
@woodbright850 7 жыл бұрын
good
@teenspirit1
@teenspirit1 7 жыл бұрын
with TStringList.Create do; try; finally Free; end; // don't use begin-end, use try-finally, otherwise if something throws, your stringlist will leak. Note: also, code that says "finally free" is pretty cool.
@sasasky85
@sasasky85 7 жыл бұрын
Да были времена юкея
@aminafdl6837
@aminafdl6837 8 жыл бұрын
i want to know how tu publish it online ... !
@askat25
@askat25 8 жыл бұрын
можно создавать сайты? до скольки пользователей могут подключаться к сайту?
@icinemagr4621
@icinemagr4621 8 жыл бұрын
ha if 20 customers go online to get pages this think will crash this is good only for 1 user
@cabeloDoPardal2
@cabeloDoPardal2 10 жыл бұрын
will <img tags create new connections?
@drakorgh
@drakorgh 10 жыл бұрын
The browser is the one who will attempt new connections on img tags, and on attempting those connections, they will most likely fail. Have in mind that this server, as simple as it is, can not server more than one connection at a time: if it's serving the main page, it cannot accept more connections to serve the images, for example, they will simply fail until the last client disconnects. To be able to accept multiple connections at the same time, you will have to deliver the management of the client socket to someone else (usually a thread), and allow the server socket to be ready to accept new connections right away, which will be again, passed on to another thread. This is just how real servers work. This example shows you the basics on managing a single connection, now you will need to work on this to meet your multiple connection needs. Regards.
@cabeloDoPardal2
@cabeloDoPardal2 10 жыл бұрын
Eduardo Piombino I tested and worked! I was using a wrong value for the image: I used href inside <a tag instead of src= . Using src="" the browser started new connections to get the image automatically. Thank you.
@drakorgh
@drakorgh 10 жыл бұрын
Well I'm glad it did. Do you know what really happened behind curtains?
@cabeloDoPardal2
@cabeloDoPardal2 10 жыл бұрын
Eduardo Piombino that TCP Server component is feasible for a HTTP webserver. Might even be suitable for SSL. My error was to write an html page with <img href="pic.jpg"/> instead of <img src="pic.jpg"/>. When I did src="" the browser made another connection into the TCPServer's port that made possible to handle resources and HTML.
@DubezOniner
@DubezOniner 11 жыл бұрын
been searching for this for daez, thanks a million
@IanRichardCole
@IanRichardCole 11 жыл бұрын
I seemed to have fixed the problem by adding the htdocs folder to the debug subfolder in the project folder...
@IanRichardCole
@IanRichardCole 11 жыл бұрын
Thanks for this - it's very cool. I seem to have a problem though with the location of my htdocs folder and index.html files - where do I need to put them for them to be recognised? Do I need to 'add' something to the project?
@AnasLinux
@AnasLinux 11 жыл бұрын
Legendary! THANKS
@ErnandoMyrtaj
@ErnandoMyrtaj 11 жыл бұрын
I Luv you :P LoL
@darvin939
@darvin939 13 жыл бұрын
@TrueVitaly 192.168.1.35 - это локальный адрес, а тебе нужен IP, который дал тебе провайдер. Узнать его можно на 2ip.ru
@PLOBEXRIME
@PLOBEXRIME 13 жыл бұрын
Hi, but how to receive POST data from HTML forms ?
@zearcher4633
@zearcher4633 Жыл бұрын
$_POST['name']
@duminicad
@duminicad 14 жыл бұрын
@lukegw are you sure the server was active when you tried to connect via browser?! sometimes you can get a port bind error if another application has binded the port...
@Sonnerick2k
@Sonnerick2k 14 жыл бұрын
Спасибо! Отличный пример, очень помог :)
@bagyev
@bagyev 14 жыл бұрын
@TrueVitaly Дело в том, что сокет принимает соединения только с того адреса, который указан в поле TcpServer1.LocalHost. В данном видео это "localhost". Для того, чтобы сокет принимал соединения с любого адреса, нужно в этом поле выставить значение "0.0.0.0".