![]() This is invoked on the server application to have the serverĪpplication wait for a TCP request for connection from a client system. ![]() However, it does not remove data from the input queue. The PeekData method operates in a fashion similar to the GetData method. GetData is the method that retrieves the current block of data from theīuffer and then stores it in a variable of the variant type. The Close method terminates a TCP connection from either the client or server applications. Method to be used, the control must be in the listening state. It accepts the request for connection from the client system. Some of the important methods of Winsock control are as following: This is read-only property and is unavailable at design time. This returns the state of the control as expressed by an enumerated This property returns or sets the remote port number. The value returned is a string and can be specified either as This can beīoth read from and written to and is available both in design time and The RemoteHost property returns or sets the remote host. ![]() Returns or sets the protocol, either TCP or UDP, used by the Winsock control. Read from and written to and is available at both design time and This property returns or sets the local port number. The LocalIP property returns the local host system IP address in theįorm of a string, such as 11.0.0.127. This is read-only property and is unavailable at the design time. The LocalHostName property returns the name of the local host system. This is a read-only property and is unavailable at design time. This property returns the number of bytes currently in the receiveīuffer. Tableīelow lists a number of popular and publicly accepted port numbers and Than that users have agreed to use them with certain applications. These standard port numbers have no inherent value other ![]() To make the job of communication easier, some port numbers have been The sending and receiving computers use this port to exchange data. That exists when two computers are in communication via TCP/IP.Īpplications use a port number as an identifier to other computers, both I think it would be better to talk about the Located on a machine different from the one that hosts the client In real life situations, database might be You will a database with this article, the database contains the item Request to the server and the server which will be connected to aĭatabase will retrieve the information requested by the client from theĭatabase and will return the requested information back to the client. Server will interact with each other to exchange data. Which will be a server and the other will be a client. Server environment, we will create two separate applications, one of This article, I am going to show how to use the winsock in a client ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |