Client.c #include <sys/socket.h> #include <sys/types.h> #include <netinet/in.h> #include <netinet/sctp.h> #include <arpa/inet.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> #include <errno.h> #define RECVBUFSIZE 4096 #define PPID 1234 int main() { int SctpScocket, in, flags; socklen_t opt_len; char * szAddress; int iPort; char * szMsg; int iMsgSize; char a[1024]; struct sockaddr_in servaddr = {0}; struct sctp_status status = {0}; ...
Network programming and scalable micro-services in Azure