Location:
Search - socket ch
Search list
Description: c语言开发基于socket的网络编程与实践代码-c language socket based network programming code and practice
Platform: |
Size: 12770 |
Author: adlis |
Hits:
Description: 简单的聊天程序vc开发
转载,实现了单聊和公众聊天,可供初级学习者使用-simple chat program vc development reproduced, achieving a single public chat and chat, for the use of primary learners
Platform: |
Size: 129024 |
Author: 凤凰唐 |
Hits:
Description: 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
Platform: |
Size: 4096 |
Author: l |
Hits:
Description: 基于VC++设计的多功能聊天系统。具有聊天、传输文件等功能-Based on VC++ design of a multi-functional chat system. With chat, file transfer and other functions
Platform: |
Size: 182272 |
Author: llh |
Hits:
Description: c语言开发基于socket的网络编程与实践代码-c language socket based network programming code and practice
Platform: |
Size: 12288 |
Author: adlis |
Hits:
Description: 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)
}
Platform: |
Size: 1024 |
Author: nabilnapel |
Hits:
Description: 里面分两个文件夹,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
Platform: |
Size: 58368 |
Author: wzs |
Hits:
Description: 自己写的一个关于socket通信的例子,调试通过,供大家学习下载。-Write your own example, debugging through a socket communication, for them to learn to download.
Platform: |
Size: 1024 |
Author: enchen |
Hits: