So here is a pair of programs demonstrating the use of sockets on Linux. The server program is run first. Then whenever the client program is run, it connects to the server on the specified port and they both exchange strings and terminate. TCP is used over IPv4. Simple_tcpserver_ipv4.c: # include < stdio.h > # include < stdlib.h > # include < unistd.h > # include < string.h > # include < sys/types.h > # include < sys/socket.h > # include < netinet/in.h > # include < netdb.h > # include < arpa/inet.h > void error ( char * msg ) { perror ( msg ) ; exit ( 1 ) ; } int main ( int argc , char * argv [ ] ) { int sockfd , newsockfd , portno ; socklen_t clilen ; char buffer [ 256 ] ; struct sockaddr_in serv_addr , cli_addr ; int n ; if ( argc < 2 ) { fprintf ( stderr , " Usage: %s \n " , argv [ 0 ] ) ; exit ( 0 ) ; } ...
This car is a bang for the buck for me not only that this car has many advanced features that not only are comfortable but many of them are safety features to give you a very safe ride with smooth performance for any kind of journey.Thanks for sharing this review. Maruti Swift
ReplyDeleteI would like to buy OBD2 Bluetooth device available on ebay and other sites, but i am not sure that weather Maruti Swift VXI 2011 (K-Series) model will support it. Please advise if you have any idea. Because some where i read that Maruti doesn't support.
ReplyDeletehi all can any one plz suggest how and where can i buy obd connector port for my swift vdi 2007 thanks
ReplyDelete