Algorithms_in_C 1.0.0
Set of algorithms implemented in C.
|
Client side implementation of Server-Client system. More...
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <arpa/inet.h>
#include <netdb.h>
#include <sys/socket.h>
#include <unistd.h>
Macros | |
#define | MAX 80 |
max. | |
#define | PORT 8080 |
port number to connect to | |
#define | SA struct sockaddr |
shortname for sockaddr | |
Functions | |
void | func (int sockfd) |
Continuous loop to send and receive over the socket. | |
int | main () |
Driver code. | |
Client side implementation of Server-Client system.
#define MAX 80 |
max.
characters per message
void func | ( | int | sockfd | ) |
Continuous loop to send and receive over the socket.
Exits when "exit" is sent from commandline.
sockfd | socket handle number |
int main | ( | void | ) |
Driver code.