Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/PKUFlyingPig/Computer-Network-A-Top-Down-Approach
/ functions
Functions
40 in github.com/PKUFlyingPig/Computer-Network-A-Top-Down-Approach
⨍
Functions
40
◇
Types & classes
5
↓ 18 callers
Method
encode
Encode the RTP packet with header fields and payload.
Programming_Assignments/VideoStreamingCode/RtpPacket.py:11
↓ 10 callers
Method
decode
Decode the RTP packet.
Programming_Assignments/VideoStreamingCode/RtpPacket.py:26
↓ 5 callers
Method
replyRtsp
Send RTSP reply to the client.
Programming_Assignments/VideoStreamingCode/ServerWorker.py:149
↓ 4 callers
Method
sendRtspRequest
Send RTSP request to the server.
Programming_Assignments/VideoStreamingCode/Client.py:143
↓ 1 callers
Function
checksum
(string)
Programming_Assignments/lab4-ICMP/icmp_client.py:11
↓ 1 callers
Method
connectToServer
Connect to the Server. Start a new RTSP/TCP session.
Programming_Assignments/VideoStreamingCode/Client.py:135
↓ 1 callers
Method
createWidgets
Build GUI.
Programming_Assignments/VideoStreamingCode/Client.py:38
↓ 1 callers
Function
doOnePing
(destAddr, timeout)
Programming_Assignments/lab4-ICMP/icmp_client.py:72
↓ 1 callers
Method
exitClient
Teardown button handler.
Programming_Assignments/VideoStreamingCode/Client.py:73
↓ 1 callers
Method
frameNbr
Get frame number.
Programming_Assignments/VideoStreamingCode/VideoStream.py:21
↓ 1 callers
Method
getPacket
Return RTP packet.
Programming_Assignments/VideoStreamingCode/RtpPacket.py:54
↓ 1 callers
Method
getPayload
Return payload.
Programming_Assignments/VideoStreamingCode/RtpPacket.py:50
↓ 1 callers
Method
main
(self)
Programming_Assignments/VideoStreamingCode/Server.py:7
↓ 1 callers
Method
makeRtp
RTP-packetize the video data.
Programming_Assignments/VideoStreamingCode/ServerWorker.py:132
↓ 1 callers
Method
nextFrame
Get next frame.
Programming_Assignments/VideoStreamingCode/VideoStream.py:10
↓ 1 callers
Method
openRtpPort
Open RTP socket binded to a specified port.
Programming_Assignments/VideoStreamingCode/Client.py:252
↓ 1 callers
Method
parseRtspReply
Parse the RTSP reply from the server.
Programming_Assignments/VideoStreamingCode/Client.py:215
↓ 1 callers
Method
pauseMovie
Pause button handler.
Programming_Assignments/VideoStreamingCode/Client.py:79
↓ 1 callers
Function
ping
(host, timeout=1)
Programming_Assignments/lab4-ICMP/icmp_client.py:82
↓ 1 callers
Method
playMovie
Play button handler.
Programming_Assignments/VideoStreamingCode/Client.py:84
↓ 1 callers
Method
processRtspRequest
Process RTSP request sent from the client.
Programming_Assignments/VideoStreamingCode/ServerWorker.py:39
↓ 1 callers
Function
receiveOnePing
(mySocket, ID, timeout, destAddr)
Programming_Assignments/lab4-ICMP/icmp_client.py:30
↓ 1 callers
Method
run
(self)
Programming_Assignments/VideoStreamingCode/ServerWorker.py:27
↓ 1 callers
Function
sendOnePing
(mySocket, destAddr, ID)
Programming_Assignments/lab4-ICMP/icmp_client.py:49
↓ 1 callers
Method
seqNum
Return sequence (frame) number.
Programming_Assignments/VideoStreamingCode/RtpPacket.py:35
↓ 1 callers
Method
updateMovie
Update the image file as video frame in the GUI.
Programming_Assignments/VideoStreamingCode/Client.py:129
↓ 1 callers
Method
writeFrame
Write the received frame to a temp image file. Return the image file.
Programming_Assignments/VideoStreamingCode/Client.py:120
Method
__init__
(self, filename)
Programming_Assignments/VideoStreamingCode/VideoStream.py:2
Method
__init__
(self, master, serveraddr, serverport, rtpport, filename)
Programming_Assignments/VideoStreamingCode/Client.py:23
Method
__init__
(self, clientInfo)
Programming_Assignments/VideoStreamingCode/ServerWorker.py:24
Method
__init__
(self)
Programming_Assignments/VideoStreamingCode/RtpPacket.py:8
Method
handler
Handler on explicitly closing the GUI window.
Programming_Assignments/VideoStreamingCode/Client.py:269
Method
listenRtp
Listen for RTP packets.
Programming_Assignments/VideoStreamingCode/Client.py:93
Method
payloadType
Return payload type.
Programming_Assignments/VideoStreamingCode/RtpPacket.py:45
Method
recvRtspReply
Receive RTSP reply from the server.
Programming_Assignments/VideoStreamingCode/Client.py:201
Method
recvRtspRequest
Receive RTSP request from the client.
Programming_Assignments/VideoStreamingCode/ServerWorker.py:30
Method
sendRtp
Send RTP packets over UDP.
Programming_Assignments/VideoStreamingCode/ServerWorker.py:110
Method
setupMovie
Setup button handler.
Programming_Assignments/VideoStreamingCode/Client.py:68
Method
timestamp
Return timestamp.
Programming_Assignments/VideoStreamingCode/RtpPacket.py:40
Method
version
Return RTP version.
Programming_Assignments/VideoStreamingCode/RtpPacket.py:31