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) }
上传时间: 2017-07-29
上传用户:wab1981
The SMS Example demonstrates how to: · Create a Short Message Service (SMS) message. · Send the SMS message that was created. · Receive an SMS message. · Read a received SMS message.
标签: demonstrates SMS Example Message
上传时间: 2017-07-30
上传用户:JIUSHICHEN
To write data to the FIFO, present the data to be written and assert the write enable. At the next rising edge of the clock, the data will be written. For every rising edge of the clock that the write enable is asserted, a piece of data is written into the FIFO. If the FIFO has data in it, the value at the head of the FIFO is present on the FIFO data output. To read data from the FIFO, assert the read enable. At the next rising edge of the clock, capture the data output the FIFO will subsequently advance to the next piece of data stored in the FIFO.
上传时间: 2014-08-16
上传用户:wab1981
This is a very good and interseting book to install and configure samba file in red hat linux server.it is very easy and comprehensive
标签: interseting and configure install
上传时间: 2013-12-27
上传用户:lepoke
My first project written in Quartus II by using VHDL, executed some tasks that display word on 7-segments LED through the simulated 5-to-1 multiplexer. My code is easy to acquire and may be help usefull.
标签: executed Quartus display project
上传时间: 2014-01-21
上传用户:chenlong
What happens with your machine when you need to move away from the computer for 10 or more minutes? How secure is your data? Can someone sit on your chair while you are at a coworkers office and play with your data? Maybe you need a computer locking tool that is small and easy to use yet powerful enough to make sure your machine is locked when you need to go out for a break.
标签: computer happens machine minutes
上传时间: 2017-08-24
上传用户:semi1981
ds18b20 digitsl 1-wire thermometer with programmable resolution code for initialization write and read and convert temperature functions
标签: initialization programmable thermometer resolution
上传时间: 2017-08-29
上传用户:225588
很珍贵的资料,本人花了近一年的时间才稿定了,这个主要说明cip控制协议在linux的编程说明及数据包装。先上转read数据包装方式,有空再上传write的。
标签:
上传时间: 2013-12-19
上传用户:youke111
The task in this assignment is to implement an airline routing system. Your system should be able to read in a ight network as a graph from a le, where airports are represented as vertices and ights between airports are represented as edges, take as input two airports and calculate the shortest route (ie path) between them.
标签: system assignment implement airline
上传时间: 2017-09-07
上传用户:kiklkook
VideoMan (Video Manager) is an open-source C++ library that helps you developing video based applications. We created VideoMan to increase our productivity developing computer vision applications, but it can be used in many other ways. With VideoMan is very easy and fast to initialize any kind of video input like webcams, video files, frame grabbers, IEEE 1394 cameras and so on. You can initialize multiple inputs at the same time and show them in the screen. Also, you can show the results of the processing steps of your computer vision algorithm (extracted edges, back projections, detected blobs...) This way you can see the results of what are you coding, checking the results of your algorithm steps. Moreover, the implemented visualization scheme make easier to combine computer graphics with video, for example to show a 3d model on top of video for augmented reality applications.
标签: open-source developing VideoMan Manager
上传时间: 2014-01-21
上传用户:chongcongying