RSS Feed

Server Socket

Posted on Sunday, October 25, 2009 in Uncategorized

Server Socket

I realised that programming in Java is quite a fun only after doing it myself. You will be amazed to know that it's like putting different pieces of puzzle together. You put them relatively in an integrated and coherent manner. The Beauty of it is, that most of the times you dont have to create these pieces yourself. You just customize them according to your need after you get them from an already defined java class or package. It was about programming, now lets talk sumthing about sockets.

Socket is used to establish a point-to-point, bidirectional connection between two entities in a network. Just like a real world socket, it is used to plugin a connection from another source. The connection can be incoming or outgoing or both. Similar is the case at the other end. To understand these sockets  properly, you need to learn a bit about Operating System and its Networking Protocols. Sockets are basically of three types: 1)UNIX Domain Sockets; 2) Internet Domain Sockets; 3) NS domain Sockets.

Java being platform independent Programming language, supports only Internet Domain Sockets as only they are platform independent out of three. These internet domain sockets are distinguished on the basis of Internet protocol they work on...

1) TCP/IP(Transfer Control Protocol): The data transfer is reliable, in-order,connection oriented, so takes connection establishment time before the actual data transfer takes place. Sockets based on TCP/IP are known as Stream Sockets.

2) UDP(User Datagram Protocol): It is connectionless,unrealiable and unordered data transfer protocol. Each packet in it has a destination address associated with it and is realeased into the network to make its own way. The sockets based on UDP are called Datagram Sockets.

3) Raw IP: It is a non-formatted protocol. Unlike TCP/IP, UDP protocols, Raw IP is not a core protocol of IP Suite. It's different from them as its used to receive header information of the packet along with data, which is not the case in TCP/IP, UDP, they just receive data.

In Java Sockets are mainly implemented from already defined classes and pakages. These are:

1) Java.net.package: It contains all the classes that a user require to create a network based application. The below mentioned classes namely ServerSocket and Socket are also its part. This package also contain classes to create Secure Sockets and to connect a Web Server.

2) ServerSocket Class: It Provides sockets for the Server side.These sockets monitor network for requests or simply waits for them. When such request arrives, a server socket performs assigned task based on the request.

3) Socket Class: This class provides the Client side sockets. These sockets connect to the server, send and receive data for the client.

Remember, no socket can work without a port which is identified by a port no. Port is a gateway to a socket connectivity which is on the both sides of network. A socket is mainly identified as per its ports.

ZanDekaron, Dekaron Private Server

PAIR 38GHz Intel Xeon SL8P2 2MB L2 800MHz fsb Server CPU Socket 604 PAIR 38GHz Intel Xeon SL8P2 2MB L2 800MHz fsb Server CPU Socket 604 US $30.18 3h 34m
SUPERMICRO AS 2042G TRF 2U Server Barebone Quad Socket G34 AMD SR5690 SR5670 SUPERMICRO AS 2042G TRF 2U Server Barebone Quad Socket G34 AMD SR5690 SR5670 US $1,199.99 7d 11h 44m
Wifi Web Server Module w TF Socket PIC24F MRF24WB0MB Wifi Web Server Module w TF Socket PIC24F MRF24WB0MB US $53.99 1d 2h 5m
LOT 6 AMD Opteron 2218 26ghz Dual Core Server CPU Socket 1207 OSA2218GAA6CX LOT 6 AMD Opteron 2218 26ghz Dual Core Server CPU Socket 1207 OSA2218GAA6CX US $29.99 8h 27m
AMD Opteron 2222 3ghz Dual Core Socket F Server CPU OSA2222GAA6CX AMD Opteron 2222 3ghz Dual Core Socket F Server CPU OSA2222GAA6CX US $9.99 8h 43m
AMD Opteron 2216 24ghz Dual Core Socket F Server CPU OSA2216GAA6CX AMD Opteron 2216 24ghz Dual Core Socket F Server CPU OSA2216GAA6CX US $9.99 8h 43m
AMD Opteron 2220 SE 28ghz Dual Core Socket F Server CPU OSY2220GAA6CQ AMD Opteron 2220 SE 28ghz Dual Core Socket F Server CPU OSY2220GAA6CQ US $9.99 8h 43m
AMD Opteron 2218 26ghz Dual Core Socket F Server CPU OSA2218GAA6CQ AMD Opteron 2218 26ghz Dual Core Socket F Server CPU OSA2218GAA6CQ US $9.99 8h 43m
1 x SERVER BOARD NEW SUPERMICRO P4SCI Socket 478 Support up to 34 GHz 1 x SERVER BOARD NEW SUPERMICRO P4SCI Socket 478 Support up to 34 GHz US $29.99 2d 16h 51m
Intel Xeon SL7ZB 64 bit 380GHz 2MB 800MHz Socket 604 Server CPU Processor Intel Xeon SL7ZB 64 bit 380GHz 2MB 800MHz Socket 604 Server CPU Processor US $19.95 19d 7h 10m
Motherboard socket 940 Tyan Thunder K8SRE S2891G2NR from server GT24 tested Motherboard socket 940 Tyan Thunder K8SRE S2891G2NR from server GT24 tested US $80.00 2d 23h 43m
Lot Of 2 Intel Xeon SL7PF 32GHz 1MB 800MHz Socket 604 Server Processors Lot Of 2 Intel Xeon SL7PF 32GHz 1MB 800MHz Socket 604 Server Processors US $9.95 22d 7h 39m
Intel Xeon SL8P2 64 Bit 380GHz 2MB 800MHz Socket 604 Server Processor Intel Xeon SL8P2 64 Bit 380GHz 2MB 800MHz Socket 604 Server Processor US $14.95 19d 7h 10m
ML 150 G3 Server Motherboard Socket LGA 771 HP P N 410426 001 ML 150 G3 Server Motherboard Socket LGA 771 HP P N 410426 001 US $54.03 3d 13h 4m
Intel Entry Server motherboard S875WP1 E socket 478 TESTED Intel Entry Server motherboard S875WP1 E socket 478 TESTED US $39.99 1d 3h 27m
Arima AMD Opteron Quad Core Socket F 3000 series Server Arima AMD Opteron Quad Core Socket F 3000 series Server US $79.95 5d 7h 33m
AMD Opteron 6272 Interlagos 21GHz Socket G34 115W 16 Core Server Processor AMD Opteron 6272 Interlagos 21GHz Socket G34 115W 16 Core Server Processor US $539.99 18d 11h 2m
ASUS K8N LR nForce4 SLI Socket 939 ATX Server Board ASUS K8N LR nForce4 SLI Socket 939 ATX Server Board US $149.00 29d 16h 31m
PAIR 2 cpu Opteron 275 OST275FAA6CB Dual Core CPUSOCKET 940 server version PAIR 2 cpu Opteron 275 OST275FAA6CB Dual Core CPUSOCKET 940 server version US $12.98 1d 15h 53m
Supermicro PDSMI rev 101 Socket 775 Server Motherboard w BMC2 Card Supermicro PDSMI rev 101 Socket 775 Server Motherboard w BMC2 Card US $24.95 26d 7h 30m
Intel Xeon E3 1230 SR00H Server CPU Processor Socket H2 LGA 1155 8M 320 GHz Intel Xeon E3 1230 SR00H Server CPU Processor Socket H2 LGA 1155 8M 320 GHz US $279.99 29d 17h 11m
1Network Networking CAT5 RJ45 RJ50 LED Signal Indicater Server Socket Port Jack 1Network Networking CAT5 RJ45 RJ50 LED Signal Indicater Server Socket Port Jack US $.99 10d 12h 42m
Dynatron H17G Socket 771 1U Server CPU Heatsink Cooler Dynatron H17G Socket 771 1U Server CPU Heatsink Cooler US $23.98 20d 13h 4m
Intel Server Board SE7520AF2 Socket 604 Motherboard New Intel Server Board SE7520AF2 Socket 604 Motherboard New US $80.00 5d 4h 13m
Intel SE7501CW2 BCW533BB C26740 307 Dual Socket 604 DDR New Server Board Only Intel SE7501CW2 BCW533BB C26740 307 Dual Socket 604 DDR New Server Board Only US $35.00 8d 23h 39m
NEW Tyan Server Mainboard S2927G2NR E 3600 2x F Socket Motherboard NEW Tyan Server Mainboard S2927G2NR E 3600 2x F Socket Motherboard US $315.00 22d 7h 40m
Intel SE7210TP1 E Entry Server Board Socket 478 New Unopened Retail Intel SE7210TP1 E Entry Server Board Socket 478 New Unopened Retail US $29.00 13d 9h 13m
Intel Xeon SL7PH 64 Bit 360 GHz 1MB 800MHz Socket 604 Server Processor Intel Xeon SL7PH 64 Bit 360 GHz 1MB 800MHz Socket 604 Server Processor US $7.95 5d 7h 30m
Cooler Fan Intel Socket LGA 775 1U CPU 1U server HTPC Cooler Fan Intel Socket LGA 775 1U CPU 1U server HTPC US $16.69 7d 18h 37m
PAIR 2 cpu Opteron 280 OST280FAA6CB Dual Core CPU socket 940 server version PAIR 2 cpu Opteron 280 OST280FAA6CB Dual Core CPU socket 940 server version US $18.00 22m
INTEL SE7221BK1 Socket 775 Entry Level Server Motherboard INTEL SE7221BK1 Socket 775 Entry Level Server Motherboard US $27.99 6d 11h 1m
AMD Opteron OST885FAA6CC Socket 940 Server Processor 26 GHz Dual Core AMD Opteron OST885FAA6CC Socket 940 Server Processor 26 GHz Dual Core US $15.00 23d 5h 44m
Intel S3420GPV Server Board S3420GPV motherboard ATX LGA1156 Socket Intel S3420GPV Server Board S3420GPV motherboard ATX LGA1156 Socket US $175.99 19h 39m
Intel S3210SHLC Server Motherboard Intel 3210 Chipset Socket T LGA 775 S3210 Intel S3210SHLC Server Motherboard Intel 3210 Chipset Socket T LGA 775 S3210 US $304.71 29d 18h 16m
ASUS NCT D INTEL E7525 Dual Socket 604 ATX Server Board ASUS NCT D INTEL E7525 Dual Socket 604 ATX Server Board US $199.00 29d 17h 56m
ASUS K8N DRE nForce 2200 Dual Socket 940 Server Board ASUS K8N DRE nForce 2200 Dual Socket 940 Server Board US $75.00 29d 16h 25m
Dynatron F558 AMD Opteron Socket 1207 3U Server CPU Cooler 35 Mounting Pitch Dynatron F558 AMD Opteron Socket 1207 3U Server CPU Cooler 35 Mounting Pitch US $34.15 29d 14h 18m
Dynatron K199 Socket 1156 2U Server Copper Cooler Dynatron K199 Socket 1156 2U Server Copper Cooler US $27.99 7h 25m
Asus PSCH SR IDE Socket 478 Server MotherBoard E7210 Asus PSCH SR IDE Socket 478 Server MotherBoard E7210 US $149.12 29d 12h 55m
Intel E7520 MCH Dual Xeon Socket 604 Server Board S604 Intel E7520 MCH Dual Xeon Socket 604 Server Board S604 US $39.99 29d 11h 33m
Intel Server System SR1630GP Barebone Intel 3420 Socket H Xeon 1U Rack Intel Server System SR1630GP Barebone Intel 3420 Socket H Xeon 1U Rack US $510.12 29d 10h 57m
4RJ45 CAT5e Cat 5e APC Server Switching Jack Socket8Y 4RJ45 CAT5e Cat 5e APC Server Switching Jack Socket8Y US $4.99 29d 10h 51m
4RJ45 CAT5e Cat 5e Server Switching KVM Jack Socket8Y 4RJ45 CAT5e Cat 5e Server Switching KVM Jack Socket8Y US $4.99 29d 10h 51m
Intel S1200BTL Socket 1155 Intel C204 DDR3 SATA3 V2GbE ATX Server Motherbo Intel S1200BTL Socket 1155 Intel C204 DDR3 SATA3 V2GbE ATX Server Motherbo US $259.49 29d 9h 47m
Server Tech CX 24VYY454A1 208VAC 80A 60309 Socket Server Tech CX 24VYY454A1 208VAC 80A 60309 Socket US $289.99 29d 8h 9m
Acer Altos G310 MK2 Intel Server Board E7221 Socket 775 ATX SE7221BA1 E Acer Altos G310 MK2 Intel Server Board E7221 Socket 775 ATX SE7221BA1 E US $115.00 29d 7h 51m
ASUS Z8NA D6C Server Board ATX Dual Socket B For Intel Xeon DDR3 SATA 300 PCIe ASUS Z8NA D6C Server Board ATX Dual Socket B For Intel Xeon DDR3 SATA 300 PCIe US $437.66 29d 7h 48m
Intel Xeon 5150 SLABM Dual Core 266GHz 4MB 1333MHz Socket 771 Server Processor Intel Xeon 5150 SLABM Dual Core 266GHz 4MB 1333MHz Socket 771 Server Processor US $9.95 29d 7h 41m
Intel Xeon 5150 SLAGA Dual Core 266GHz 4MB 1333MHz Socket 771 Server Processor Intel Xeon 5150 SLAGA Dual Core 266GHz 4MB 1333MHz Socket 771 Server Processor US $12.95 29d 7h 37m
SuperMicro X6DHR 3G2 Socket 604 ATX Intel Server Motherboard SuperMicro X6DHR 3G2 Socket 604 ATX Intel Server Motherboard US $35.00 29d 4h 29m
Intel Server board SE7520JR2 E7520 Socket 604 Dual XEON Intel Server board SE7520JR2 E7520 Socket 604 Dual XEON US $99.95 29d 2h 38m
New SUPERMICRO X8STE ATX LGA1366 Socket X58 Server Motherboard i7 Xeon 5500 5600 New SUPERMICRO X8STE ATX LGA1366 Socket X58 Server Motherboard i7 Xeon 5500 5600 US $209.99 29d 13m
NEW Intel S1200BTS Server Motherboard Intel Socket NEW Intel S1200BTS Server Motherboard Intel Socket US $168.99 28d 22h 39m
Intel S5500BC Server Motherboard Intel Socket B LGA 1366 S5500BCR Intel S5500BC Server Motherboard Intel Socket B LGA 1366 S5500BCR US $413.91 28d 17h 31m
INTEL S5000XAL DUAL Socket 771 SERVER BOARD INTEL S5000XAL DUAL Socket 771 SERVER BOARD US $219.95 28d 15h 46m
IBM x345 Server Motherboard 48P9026 Socket 603 IBM x345 Server Motherboard 48P9026 Socket 603 US $129.00 28d 15h 23m
IBM x345 Server Motherboard 73P6654 23K4455 Socket 604 IBM x345 Server Motherboard 73P6654 23K4455 Socket 604 US $129.00 28d 15h 17m
IBM x345 Server CPU VRM Module 49P2129 Socket 603 IBM x345 Server CPU VRM Module 49P2129 Socket 603 US $29.00 28d 15h 9m
IBM x345 Server CPU VRM Module 49P2010 Socket 604 IBM x345 Server CPU VRM Module 49P2010 Socket 604 US $29.00 28d 15h 3m
Supermicro X8DTH 6F Server Motherboard Intel Socket Supermicro X8DTH 6F Server Motherboard Intel Socket US $620.45 28d 14h 53m

Be the first to comment.

Leave a Reply