Simple TCP client server sockets application using IPv6 and IPv6
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 ) ; } ...
Do you think glop-top IC packing is less reliable, durable and runs hotter than a typical packaging? This's and old reader i still have:
ReplyDeletehttp://mcbx.netne.net/hacks/cardrdr/neo-mod3.jpg
a very discrete circuit, even if you'd pay well for a well done reader, there are not anymore. I'm always afraid that my micro sd card reader (worse than yours, w/o smd caps), kills my 32gb cards (full of hard-important work). What do you think? . Nice blog.
@Blaze:
ReplyDeleteI think that glob top are a compromise on the quality too and yes that does seem to make them run hotter. I guess the best way is to connect your camera to the computer and not use a card reader at all. Now days even built in card readers found in Laptops are based on glob tops.
Its all about bringing down the cost. But then you end up discarding so much of these cheap electronics that it makes you think, wouldn't it be better to pay more for a high quality product that last longer and creates less pollution... but like you said, no one's making them.