TAILIEUCHUNG - HandBooks Professional Java-C-Scrip-SQL part 252

Tham khảo tài liệu 'handbooks professional java-c-scrip-sql part 252', công nghệ thông tin, kỹ thuật lập trình phục vụ nhu cầu học tập, nghiên cứu và làm việc hiệu quả | require socket Example require socket host if 2 else localhost end print Trying host . s host print done n print addr n print peer n while gets _ print end Inherited Class IPSocket Class Methods TCPSocket new host service TCPSocket open host service Opens a TCP connection to host for service which may also be a port number TCPServer TCP IP server socket class TCPServer is a class for server-side TCP sockets. A TCPServer waits for client connection by the accept method then returns a TCPSocket object connected to the client. Required Library require socket Example require socket gs O addr removes AF_INET printf server is on s n while true do s print s is accepted n while _ end print s is gone n end end Inherited Class TCPSocket Class Methods TCPServer new ost- localhost service TCPServer open ost- localhost service Creates a server socket Instance Method Waits for a connection and returns a new TCPSocket object once one is accepted UNIXSocket Unix domain socket class UNIXSocket is a class for the Unix domain which can be specified by the path. Required Library require socket Inherited Class BasicSocket Class Methods UNIXSocket new path UNIXSocket open path Creates a Unix domain socket Instance Methods Returns an array containing information on the socket AF_UNIX and the path Returns the path of the Unix domain socket Returns an array containing information on the peer socket in the same format as len flag 0 Receives data and returns it in an array that also includes information on the sender s socket in the same format as .

TAILIEUCHUNG - Chia sẻ tài liệu không giới hạn
Địa chỉ : 444 Hoang Hoa Tham, Hanoi, Viet Nam
Website : tailieuchung.com
Email : tailieuchung20@gmail.com
Tailieuchung.com là thư viện tài liệu trực tuyến, nơi chia sẽ trao đổi hàng triệu tài liệu như luận văn đồ án, sách, giáo trình, đề thi.
Chúng tôi không chịu trách nhiệm liên quan đến các vấn đề bản quyền nội dung tài liệu được thành viên tự nguyện đăng tải lên, nếu phát hiện thấy tài liệu xấu hoặc tài liệu có bản quyền xin hãy email cho chúng tôi.
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.