hosseini@um.ac.ir E.mail: - PowerPoint PPT Presentation

About This Presentation
Title:

hosseini@um.ac.ir E.mail:

Description:

hosseini_at_um.ac.ir E.mail: Home page: http://hosseini.staffcms.um.ac.ir – PowerPoint PPT presentation

Number of Views:190
Avg rating:3.0/5.0
Slides: 17
Provided by: Mohs82
Category:
Tags: hosseini | mail | socket | what

less

Transcript and Presenter's Notes

Title: hosseini@um.ac.ir E.mail:


1
?????? ?????? ???????
  • ????? ?????
  • ???? ??? ???? ?????
  • hosseini_at_um.ac.ir E.mail
  • Home page http//hosseini.staffcms.um.ac.ir

2
(No Transcript)
3
(No Transcript)
4
(No Transcript)
5
(No Transcript)
6
(No Transcript)
7
(No Transcript)
8
(No Transcript)
9
(No Transcript)
10
(No Transcript)
11
???????? ??? ?????? ??? ?????
12
(No Transcript)
13
(No Transcript)
14
lt?php ignore_user_abort(true) set_time_limit(0)
host "127.0.0.1" port 9898 socket
socket_create(AF_INET, SOCK_STREAM, 0) or
die("Could not create socket\n") socket_set_optio
n(socket, SOL_SOCKET, SO_REUSEADDR,
1) socket_bind(socket, host,
port) socket_listen(socket)
15
while(true) spawn socket_accept(socket) d
ata socket_read(spawn, 10240) or die("Could
not read input\n") load file_get_contents('tes
t.txt') file_put_contents('test.txt',load.data)
socket_close(socket) ?gt
16
lt?php set_time_limit(0) host
"127.0.0.1" port 9898 socket
socket_create(AF_INET, SOCK_STREAM, SOL_TCP) or
die("Could not create socket\n") connect
socket_connect(socket, host, port) sendmsg
" this is a test " socket_write(socket,
sendmsg,strlen(sendmsg)) socket_close(socket)
print file_get_contents('test.txt') ?gt
Write a Comment
User Comments (0)
About PowerShow.com