ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Communication / Sockets
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
The following functions are used to manage sockets:
SocketAcceptRun on the server, this function accepts a request for connecting to an existing socket found on the server.
SocketChangeTransmissionModeChanges the transmission mode used on a socket.
SocketClientInfoAllows the server to get information about the current client socket.
SocketCloseCloses a socket or a connection to a server socket.
SocketConfigureConfigures the use of Socket functions.
SocketConnectConnects a client computer to a given socket.
SocketConnectBluetoothConnects a client computer to a specific Bluetooth socket.
SocketConnectInfraredConnects a client computer to a given socket via the infrared port.
SocketConnectSSLUsed to establish a secure connection to an SSL server.
SocketCreateCreates a socket.
SocketCreateBluetoothCreates a socket using a Bluetooth device.
SocketCreateInfraredCreates a socket that uses the infrared port.
SocketCreateSSLCreates a secure socket according to the SSL protocol.
SocketCreateUDPCreates a socket that uses the UDP protocol.
SocketDenyRun on the server, this function refuses a request for connection to an existing socket found on the server.
SocketExistChecks the existence of socket.
SocketProxySpecifies whether TCP sockets and WebSockets must go through a SOCKS5 proxy to execute requests.
SocketReadRetrieves a message sent by another socket.
SocketWaitForConnectionRun on the server, this function is used to wait for a connection request coming from the client sockets.
SocketWriteWrites a message intended to another socket.
WebSocketClientConnectEstablishes a connection between the client and a WebSocket server.
WebSocketClientConnectSSLEstablishes an SSL connection between the client and a WebSocket server.
Related Examples:
Sending a fax Unit examples (WINDEV): Sending a fax
[ + ] Sending a fax with WINDEV. The fax can be sent via a fax server or via a modem properly installed and configured on the user computer.
WD Live Messaging Complete examples (WINDEV): WD Live Messaging
[ + ] This example presents the "Socket" functions of WINDEV.
The following topics are presented in this example:
1/ How to connect to a socket
2/ How to create a socket
Summary of the example supplied with WINDEV:
This example present the different functions for socket management supplied with WINDEV. To use this example, a list of contacts must be entered in your address book. The contacts must be identified by a name and the IP address of their computer. When the application is started, the program searches for the accessible contacts (which means the ones who have started this application on their computer). When you double-click a "connected" contact, a discussion window is opened, giving you the ability to communicate with the contact
WD Using sockets Training (WINDEV): WD Using sockets
[ + ] This example presents the use of the "Socket" functions of WINDEV in Client/Server.
The following topics are presented in this example:
1/ How to connect to a socket
2/ How to accept a request for connection
3/ How to write or read on a socket
Summary of the example supplied with WINDEV:
This example presents the different functions for socket management supplied with WINDEV. To use this example, a first instance of the example must be started in "server" mode. Then, by specifying the name of the computer that will be used as server and a nickname, you can connect to this application in "client" mode. You now have the ability to send messages to all the connected users. In this example, a thread and a socket are associated with each connection.
WD Trace Socket Sample components (WINDEV): WD Trace Socket
[ + ] The purpose of this example is to trace everything that occurs on a communication via socket, on a specific address, on a specific port. This example allows you to understand the principle of dialog via socket between two applications.
Therefore, in the applications that dialog via socket, even if no trace option as implemented by the developers, you will have he ability to view all the exchanges performed on the socket.
This example also enables you to understand the operating mode of the network protocols based on the sockets: POP3, SMTP, FTP, HTTP, and so on.
Note for the users who are experienced in network communication:
This example does not allow you to trace the UDP packages (only the TCP communications can be traced).
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 06/22/2023

Send a report | Local help