![]() Return end if // Close the connection with the server // Wait a max of 20 seconds (20000 millsec)Ģ000-2022 Chilkat Software, Inc. See this Chilkat blog post for more information: // Note: Technically, the ReceiveString may not receive the // complete string, although it's highly probable given the short // length of the "Hello World!" message. Serial Port I/O control with protocols ZMODEM, YMODEM, YMODEM. MaxSendIdleMs = 10000 // Pretend, for the sake of the example, that the // ficticious server is going to send a "Hello World!" // after accepting the connection. Asynchronous Serial Communication ActiveX, OCX and COM OLE components for rs-232, rs-422, rs-485. Return end if // Set maximum timeouts for reading an writing (in millisec) Li_rc = loo_Socket.ConnectToNewObject( " Chilkat_9_5_0.Socket") See Global Unlock Sample for sample code. This example requires the Chilkat API to have been previously unlocked. (PowerBuilder) TCP/IP Socket Connect to Remote Host:Portĭemonstrates how to create a TCP/IP socket, connect to a remote host:port, and receive a "Hello World!" message.
0 Comments
Leave a Reply. |