modified some pre define
modified Socket and ServerSocket and DatagramPacket and DatagramSocket to comfirm to use specified protocal