Hot Search : Source embeded web remote control p2p game More...
Location : Home Search - socket ch
Search - socket ch - List
c语言开发基于socket的网络编程与实践代码-c language socket based network programming code and practice
Date : 2008-10-13 Size : 12.47kb User : adlis

简单的聊天程序vc开发 转载,实现了单聊和公众聊天,可供初级学习者使用-simple chat program vc development reproduced, achieving a single public chat and chat, for the use of primary learners
Date : 2025-07-13 Size : 126kb User : 凤凰唐

The reason why I decided to write this article is because, I was learning myself how to use sockets with under windows, I could not find one place that had a tutorial which included every thing i was looking for, or if it did it was way to complicated for me to understand. In the end after doing my research I put together my resources and came up with this tutorial. I hope that it is clear and informative so that other people can benefit from it -The reason why I decided to write this Artic le is because, I was learning myself how to use sockets with und er windows, I could not find one place that had a tutorial WHI ch included every thing i was looking for. or if it did it was way to complicated for me to und erstand. In the end after doing my research I put my resources together and came up with this TUTO 77. I hope that it is clear and informative so t hat other people can benefit from it
Date : 2025-07-13 Size : 4kb User : l

基于VC++设计的多功能聊天系统。具有聊天、传输文件等功能-Based on VC++ design of a multi-functional chat system. With chat, file transfer and other functions
Date : 2025-07-13 Size : 178kb User : llh

c语言开发基于socket的网络编程与实践代码-c language socket based network programming code and practice
Date : 2025-07-13 Size : 12kb User : adlis

client socket include <sys/types.h> include <sys/socket.h> include <stdio.h> include <netinet/in.h> include <arpa/inet.h> include <unistd.h> int main() { int sockfd int len struct sockaddr_in address int result char ch = A sockfd = socket(AF_INET, SOCK_STREAM, 0) address.sin_family = AF_INET address.sin_addr.s_addr = inet_addr("127.0.0.1") address.sin_port = 9734 len = sizeof(address) result = connect(sockfd, (struct sockaddr *)&address, len) if(result == -1) { perror("oops: client") exit(1) } write(sockfd, &ch, 1) read(sockfd, &ch, 1) printf("char from server = c\n", ch) close(sockfd) exit(0) } -client socket include <sys/types.h> include <sys/socket.h> include <stdio.h> include <netinet/in.h> include <arpa/inet.h> include <unistd.h> int main() { int sockfd int len struct sockaddr_in address int result char ch = A sockfd = socket(AF_INET, SOCK_STREAM, 0) address.sin_family = AF_INET address.sin_addr.s_addr = inet_addr("127.0.0.1") address.sin_port = 9734 len = sizeof(address) result = connect(sockfd, (struct sockaddr*)&address, len) if(result ==-1) { perror("oops: client") exit(1) } write(sockfd, &ch, 1) read(sockfd, &ch, 1) printf("char from server = c\n", ch) close(sockfd) exit(0) }
Date : 2025-07-13 Size : 1kb User : nabilnapel

里面分两个文件夹,client 在Android实现,Server 是java应用程序。运行时注意在client 的中换上Server的IP-Inside two folders, client achieve in Android, Server is a java application. Run-time attention of the client put in the Server' s IP
Date : 2025-07-13 Size : 57kb User : wzs

自己写的一个关于socket通信的例子,调试通过,供大家学习下载。-Write your own example, debugging through a socket communication, for them to learn to download.
Date : 2025-07-13 Size : 1kb User : enchen
CodeBus is one of the largest source code repositories on the Internet!
Contact us :
1999-2046 CodeBus All Rights Reserved.