Toggle navigation
Toggle navigation
This project
Loading...
Sign in
2020-2-capstone-design2
/
2015102747
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
이재빈
2020-11-30 20:19:27 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
0c87bf73285ce7af942c6ce101c44fb8a607e48b
0c87bf73
1 parent
05f7a1b0
Recieve Driving Info
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
0 deletions
Modules/Human_recognition_Edge.py
Modules/Human_recognition_Edge.py
0 → 100644
View file @
0c87bf7
import
socket
PORT
=
9999
server_socket
=
socket
.
socket
(
socket
.
AF_INET
,
socket
.
SOCK_STREAM
)
server_socket
.
setsockopt
(
socket
.
SOL_SOCKET
,
socket
.
SO_REUSEADDR
,
1
)
server_socket
.
bind
((
''
,
PORT
))
server_socket
.
listen
(
1
)
client_socket
,
addr
=
server_socket
.
accept
()
print
(
'Connected by'
,
addr
)
while
True
:
data
=
client_socket
.
recv
(
1024
)
if
not
data
:
pass
print
(
'Recieved from'
,
addr
,
data
.
decode
(
'utf-8'
))
Please
register
or
login
to post a comment