Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <sys/socket.h>
- int main(void)
- {
- // the data to send using send()
- int data = 10;
- // the socket you want to send the data on
- int socket;
- // create and set up the socket here, according to your needs
- // send the variable 'data' over the socket
- send(socket, &data, sizeof data, 0);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement