InetConnect method (ILEADRasterInet)
short InetConnect (BSTR pszComputer, short iPort); | |
Overview |
Refer to Implementing Internet Functionality. |
Remarks
Connects to a remote computer on the specified port.
This method will generate an InetAccept event on the host computer, if the server was initialized using the Internet Control.
After establishing a connection to a remote computer, you can then send data to the remote computer using the InetSendBitmap, InetSendDIB, InetSendSound, and InetSendData methods and receive data using the InetReceiveBitmap, InetReceiveData InetReceiveSound, and InetReceiveStart events.
To setup a computer as a server, you must call the InetServerInit method on the host computer.
You can disconnect from a host computer by using the InetDisconnect method.
See Also