client_server_sockets

Creator: coderz1093

Last updated:

0 purchases

client_server_sockets Image
client_server_sockets Images

Languages

Categories

Add to Cart

Description:

client server sockets

A simple client-server sockets package that uses the Socket and ServerSocket classes.
Usage #
Start the server using:
Server.instance.start();
copied to clipboard
Connect the client to the server using its address:
Client.instance.connect("192.168.1.10");
copied to clipboard
To send a message to the server, use the send() function like this:
Client.instance.send("Hello World!");
copied to clipboard
To broadcast a message to all clients, use the broadcast() function like this:
Server.instance.broadcast("Broadcasted message");
copied to clipboard
To send a message from a client to another, you can use the Payload class to help you with that along with the sendTo() function in the server. Check the example for more info.

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.