User: alciro    User
 Original    Translate to:  Deutsch  English  Français  中文  
 

Programación en C++ Builder

 Arrays (arrays)
 Pointers
3. Example of class in c + +
8. AnsiString class methods
 C + + projects
 Packages, distribute an application without installation
 Exchange or bubble sorting
 String string.h functions

12. TCP / IP

TCP / IP will communicate through objects and ClientSocket ServerSocket.

To make a submission, the Sockets on both computers must use the same communications port, must be careful not to activate a port used by the operating system or some service that may be running on any computers. Do not use standard ports for Internet services.

To make a communication between two computers through TCP / IP sockets have it follow the following steps:

  1. Put the computer that represents the server on listening (Listening).
  2. From the client computer to connect indicating the Host or IP of the server computer.
  3. Ved established a connection (without any errors occur) can initiate communication by sending data from client to server.
  4. Process customer data in the server.
  5. Responding to the customer.
  6. Process the response data, and continue the communication of information by repeating steps 3 through 6. When connection is established, any client machine / server is capable of sending data, so that both can initiate a communication.
  7. To stop communications, the connection is closed by the client.
  8. To stop the server, the exit mode of listening (Listening).
TCP/IP by means of socket communications
Loading
copyright © 2007-2024  www.alciro.org  All rights reserved.         
Share |