been searching for this for daez, thanks a million
@bagyev14 жыл бұрын
@TrueVitaly Дело в том, что сокет принимает соединения только с того адреса, который указан в поле TcpServer1.LocalHost. В данном видео это "localhost". Для того, чтобы сокет принимал соединения с любого адреса, нужно в этом поле выставить значение "0.0.0.0".
@matiasiglesias26534 жыл бұрын
I´m using delphi tokyo 10.2.3, and i don´t find the components that you are using, where can I download?
@IanRichardCole11 жыл бұрын
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?
@duminicad14 жыл бұрын
@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...
@Sonnerick2k14 жыл бұрын
Спасибо! Отличный пример, очень помог :)
@LoganCale7 жыл бұрын
Very nice !
@YocoyaniBUAP6 жыл бұрын
Thanks a lot, its nice !
@IanRichardCole11 жыл бұрын
I seemed to have fixed the problem by adding the htdocs folder to the debug subfolder in the project folder...
@eyersadul5 жыл бұрын
Ty bro.. 🤗
@tolshinaemberkovich10395 жыл бұрын
Hi, for me the example doesn't work. I have Delphi 7.
@AnasLinux11 жыл бұрын
Legendary! THANKS
@askat258 жыл бұрын
можно создавать сайты? до скольки пользователей могут подключаться к сайту?
@PLOBEXRIME13 жыл бұрын
Hi, but how to receive POST data from HTML forms ?
@zearcher4633 Жыл бұрын
$_POST['name']
@aminafdl68378 жыл бұрын
i want to know how tu publish it online ... !
@cabeloDoPardal210 жыл бұрын
will
@drakorgh10 жыл бұрын
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.
@cabeloDoPardal210 жыл бұрын
Eduardo Piombino I tested and worked! I was using a wrong value for the image: I used href inside
@drakorgh10 жыл бұрын
Well I'm glad it did. Do you know what really happened behind curtains?
@cabeloDoPardal210 жыл бұрын
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 instead of . When I did src="" the browser made another connection into the TCPServer's port that made possible to handle resources and HTML.
@woodbright8507 жыл бұрын
good
@john_lm07516 жыл бұрын
doesn't work in delphi xe7. components and command statements do not exist.
@anjavalia12576 жыл бұрын
а на паскаы таке можна написати
@ErnandoMyrtaj11 жыл бұрын
I Luv you :P LoL
@icinemagr46218 жыл бұрын
ha if 20 customers go online to get pages this think will crash this is good only for 1 user