Location:
Search - NET socket IO
Search list
Description: 高效socket服务器要用到的(windows平台)iocp技术,可以提高服务器的并发连接数-Efficient use of the socket server (windows platform) iocp technology, can improve the number of concurrent connections the server
Platform: |
Size: 77824 |
Author: 谢黎鹏 |
Hits:
Description: java网络编程 等待客户端的连接请求,等待时程序阻塞接收单个字符接收整行数据-import java.io.BufferedReader
import java.io.InputStream
import java.io.InputStreamReader
import java.io.OutputStream
import java.net.ServerSocket
import java.net.Socket
Platform: |
Size: 1024 |
Author: javaboy |
Hits:
Description: Socket通訊System.IO Exception: Unable to read data from the transport connection: 遠端主機已強制關閉一個現存的連線。. ---> System.Net.Sockets.SocketException: 遠端主機已強制關閉一個現存的連線。
at System.Net.Sockets.Socket.BeginReceive(Byte[] buffer, Int32 offset, Int32 size, SocketFlags socketFlags, AsyncCallback callback, Object state)
at System.Net.Sockets.NetworkStream.BeginRead(Byte[] buffer, Int32 offset, Int32 size, AsyncCallback callback, Object state)
--- End of inner exception stack trace -Socket connect Tcpclient connect
Platform: |
Size: 36864 |
Author: Aiking |
Hits:
Description: 实现了java环境下一对一的私人聊天功能-import java.io.*
import java.awt.*
import java.awt.event.*
import javax.swing.*
import java.net.*
public class ChatClient implements ActionListener
{
private Panel panel
private JTextArea said
private JTextField chat
private JButton send
private ServerSocket server
private Socket s
private InputStream in
private OutputStream out
public ChatClient()
{
JFrame f=new JFrame("聊天系统客户机端")
f.setSize(350,400)
panel=new Panel()
said=new JTextArea()
chat=new JTextField(20)
chat.addActionListener(this)
send=new JButton("发送")
send.addActionListener(this)
panel.add(chat)
panel.add(send)
f.add("South",panel)
f.add("Center",said)
f.addWindowListener(new WindowAdapter()
{
public void windowClosing(WindowEvent e)
{
System.exit(0)
}
})
f.show()
}
public void startN
Platform: |
Size: 6144 |
Author: gddjq |
Hits:
Description: 北大青鸟学士后java项目一,超市收银管理系统。-package client
import java.io.IOException
import java.io.ObjectInputStream
import java.io.ObjectOutputStream
import java.net.Socket
import java.net.UnknownHostException
import util.Datas
import util.SysConstants
import entity.Shangpin
import entity.Yuangong
Platform: |
Size: 28672 |
Author: 李正宇 |
Hits:
Description: android实时语音采集 视频采集 播放-package com.example.android
import java.io.ByteArrayInputStream
import java.io.ByteArrayOutputStream
import java.io.FileOutputStream
import java.io.IOException
import java.io.InputStream
import java.io.OutputStream
import java.io.UnsupportedEncodingException
import java.net.InetAddress
import java.net.Socket
import android.media.MediaPlayer
import android.net.wifi.WifiInfo
import android.net.wifi.WifiManager
import android.os.Bundle
import android.os.Handler
import android.os.Message
import android.provider.MediaStore.Video
import android.app.Activity
import android.app.AlertDialog
import android.app.AlertDialog.Builder
import android.app.Dialog
import android.content.Context
import android.content.DialogInterface
import android.graphics.Color
import android.graphics.ImageFormat
import android.graphics.Rect
import android.graphics.YuvImage
import android.hardware.Camera
import android.hardware.Camera.Size
import android.util
Platform: |
Size: 832512 |
Author: adada |
Hits: