Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/PKUFlyingPig/CS144-Computer-Network
/ functions
Functions
633 in github.com/PKUFlyingPig/CS144-Computer-Network
⨍
Functions
633
◇
Types & classes
190
↓ 4 callers
Method
pop_output
\param[in] len bytes will be removed from the output side of the buffer
libsponge/byte_stream.cc:41
↓ 4 callers
Function
random_router_ethernet_address
apps/lab7.cc:28
↓ 4 callers
Method
remaining_outbound_capacity
libsponge/tcp_connection.cc:15
↓ 4 callers
Method
remove_prefix
libsponge/util/buffer.cc:5
↓ 4 callers
Method
set_blocking
libsponge/util/file_descriptor.cc:101
↓ 4 callers
Function
show_usage
apps/tcp_udp.cc:17
↓ 4 callers
Function
show_usage
apps/tcp_ip_ethernet.cc:20
↓ 4 callers
Function
summary
apps/lab7.cc:40
↓ 4 callers
Method
tick
apps/lab7.cc:113
↓ 4 callers
Method
write
\param[in] buffer is the content to write to the TestFD
tests/tcp_fsm_test_harness.cc:29
↓ 3 callers
Function
append_data
tests/tcp_expectation.hh:38
↓ 3 callers
Method
as_iovecs
libsponge/util/buffer.cc:97
↓ 3 callers
Method
bind
apps/lab7.cc:143
↓ 3 callers
Method
close
libsponge/util/file_descriptor.cc:21
↓ 3 callers
Function
compare_ip_headers_nolen
tests/test_utils_ipv4.hh:6
↓ 3 callers
Method
connect
connect socket to a specified peer address \param[in] address is the peer's Address
libsponge/util/socket.cc:65
↓ 3 callers
Method
consecutive_retransmissions
libsponge/tcp_sender.cc:144
↓ 3 callers
Method
listen_and_accept
apps/lab7.cc:150
↓ 3 callers
Function
read
tests/fsm_stream_reassembler_win.cc:21
↓ 3 callers
Method
recv
\note If `mtu` is too small to hold the received datagram, this method throws a std::runtime_error
libsponge/util/socket.cc:88
↓ 3 callers
Method
route
libsponge/router.cc:65
↓ 3 callers
Function
show_ethernet_frame
tests/test_utils.hh:12
↓ 3 callers
Method
shutdown
shut down a socket in the specified way \param[in] how can be `SHUT_RD`, `SHUT_WR`, or `SHUT_RDWR`; see [shutdown(2)](\ref man2::shutdown)
libsponge/util/socket.cc:69
↓ 3 callers
Function
summary
tests/network_interface_test_harness.cc:63
↓ 3 callers
Method
tick
\param[in] ms_since_last_tick the number of milliseconds since the last call to this method
libsponge/tcp_sender.cc:129
↓ 3 callers
Method
to_string
tests/fsm_stream_reassembler_harness.hh:26
↓ 3 callers
Method
wait_next_event
\param[in] timeout_ms is the timeout value passed to [poll(2)](\ref man2::poll); `wait_next_event` returns Result::Timeout if no fd is ready after the
libsponge/util/eventloop.cc:61
↓ 3 callers
Method
window_size
libsponge/tcp_receiver.cc:59
↓ 3 callers
Function
wrapping_lt
tests/fsm_reorder.cc:24
↓ 3 callers
Method
write
Serialize a TCP segment and send it as the payload of a UDP datagram. \param[in] seg is the TCP segment to write
libsponge/tcp_helpers/fd_adapter.cc:50
↓ 2 callers
Method
accept
accept a new incoming connection \returns a new TCPSocket connected to the peer. \note This function blocks until a new connection is available
libsponge/util/socket.cc:151
↓ 2 callers
Method
ack_index
libsponge/stream_reassembler.cc:97
↓ 2 callers
Method
ack_received
\param ackno The remote receiver's ackno (acknowledgment number) \param window_size The remote receiver's advertised window size
libsponge/tcp_sender.cc:80
↓ 2 callers
Function
ack_rst_syn_sent_test
in SYN_SENT, send ACK and maybe RST
tests/fsm_ack_rst_relaxed.cc:34
↓ 2 callers
Method
bind
bind socket to a specified local address (usually to listen/accept) \param[in] address is a local Address to bind
libsponge/util/socket.cc:61
↓ 2 callers
Function
check_equivalent_segments
tests/send_equivalence_checker.cc:12
↓ 2 callers
Function
compare_tcp_headers
tests/test_utils.hh:38
↓ 2 callers
Method
fd_num
underlying descriptor number
libsponge/util/file_descriptor.hh:86
↓ 2 callers
Function
inet4_addr
apps/udp_tcpdump.cc:64
↓ 2 callers
Function
inet6_addr
apps/udp_tcpdump.cc:73
↓ 2 callers
Function
inet_cksum
tests/tcp_parser.cc:20
↓ 2 callers
Method
listen
mark the socket as listening for incoming connections \param[in] backlog is the number of waiting connections to queue (see [listen(2)](\ref man2::lis
libsponge/util/socket.cc:146
↓ 2 callers
Function
main_loop
apps/tcp_benchmark.cc:31
↓ 2 callers
Function
make_hints
\brief Build a `struct addrinfo` containing hints for [getaddrinfo(3)](\ref man3::getaddrinfo) \param[in] ai_flags is the value of the `ai_flags` fiel
libsponge/util/address.cc:71
↓ 2 callers
Function
move_segments
apps/tcp_benchmark.cc:14
↓ 2 callers
Method
next_seqno
\brief relative seqno for the next byte to be sent
libsponge/tcp_sender.hh:105
↓ 2 callers
Method
payload_length
libsponge/tcp_helpers/ipv4_header.cc:112
↓ 2 callers
Function
print_usage
apps/lab7.cc:285
↓ 2 callers
Method
read
\details This function first attempts to parse a TCP segment from the next UDP payload recv()d from the socket. If this succeeds, it then checks that
libsponge/tcp_helpers/fd_adapter.cc:21
↓ 2 callers
Method
send_data
\param[in] seqno is the sequence number of the segment \param[in] ackno is the acknowledgment number of the segment \param[in] begin is an iterator to
tests/tcp_fsm_test_harness.cc:133
↓ 2 callers
Method
send_empty_segment
libsponge/tcp_sender.cc:146
↓ 2 callers
Function
sendmsg_helper
libsponge/util/socket.cc:115
↓ 2 callers
Method
service_count
libsponge/util/eventloop.cc:13
↓ 2 callers
Function
show_usage
apps/udp_tcpdump.cc:21
↓ 2 callers
Method
size
\brief Size of the string
libsponge/util/buffer.hh:41
↓ 2 callers
Function
socket_pair_helper
\brief Call [socketpair](\ref man2::socketpair) and return connected Unix-domain sockets of specified type \param[in] type is the type of AF_UNIX sock
libsponge/tcp_helpers/tcp_sponge_socket.cc:168
↓ 2 callers
Method
tick
\param[in] ms_since_last_tick the number of milliseconds since the last call to this method
libsponge/tcp_helpers/tuntap_adapter.cc:40
↓ 2 callers
Function
timestamp_ms
\returns the number of milliseconds since the program started
libsponge/util/util.cc:14
↓ 2 callers
Method
to_string
tests/receiver_harness.hh:171
↓ 2 callers
Function
wrapping_gt
tests/fsm_reorder.cc:25
↓ 2 callers
Method
write
\param[in] seg the TCPSegment to send
libsponge/tcp_helpers/tuntap_adapter.cc:46
↓ 1 callers
Method
bytes_in_flight
libsponge/tcp_connection.cc:17
↓ 1 callers
Method
bytes_read
libsponge/byte_stream.cc:81
↓ 1 callers
Method
can_read
tests/tcp_fsm_test_harness.hh:45
↓ 1 callers
Method
check
apps/network_simulator.cc:130
↓ 1 callers
Function
check_arg
apps/udp_tcpdump.cc:37
↓ 1 callers
Method
closed
closed flag state
libsponge/util/file_descriptor.hh:92
↓ 1 callers
Function
compare_ip_headers
tests/test_utils_ipv4.hh:11
↓ 1 callers
Method
copy
\brief Make a copy to a new std::string
libsponge/util/buffer.hh:44
↓ 1 callers
Method
description
tests/sender_harness.hh:164
↓ 1 callers
Method
duplicate
\returns a copy of this FileDescriptor
libsponge/util/file_descriptor.cc:45
↓ 1 callers
Method
execute
tests/receiver_harness.hh:123
↓ 1 callers
Method
execute
tests/fsm_stream_reassembler_harness.hh:114
↓ 1 callers
Function
get_URL
apps/webget.cc:9
↓ 1 callers
Function
get_config
apps/tcp_udp.cc:49
↓ 1 callers
Function
get_config
apps/tcp_ipv4.cc:55
↓ 1 callers
Function
get_config
apps/tcp_ip_ethernet.cc:51
↓ 1 callers
Function
network_simulator
apps/network_simulator.cc:272
↓ 1 callers
Function
parse_arguments
apps/udp_tcpdump.cc:44
↓ 1 callers
Function
process_ipv4_ipv6
apps/udp_tcpdump.cc:82
↓ 1 callers
Function
program_body
apps/lab7.cc:159
↓ 1 callers
Function
random_host_ethernet_address
apps/lab7.cc:17
↓ 1 callers
Function
random_host_ethernet_address
apps/network_simulator.cc:13
↓ 1 callers
Function
random_private_ethernet_address
libsponge/tcp_helpers/tcp_sponge_socket.cc:304
↓ 1 callers
Method
read_count
number of reads
libsponge/util/file_descriptor.hh:95
↓ 1 callers
Method
remove_prefix
libsponge/util/parser.cc:45
↓ 1 callers
Method
send
libsponge/util/socket.cc:139
↓ 1 callers
Method
set_listening
\brief Set the listening flag \param[in] l is the new value for the flag
libsponge/tcp_helpers/fd_adapter.hh:27
↓ 1 callers
Method
set_reuseaddr
allow local address to be reused sooner, at the cost of some robustness \note Using `SO_REUSEADDR` may reduce the robustness of your application
libsponge/util/socket.cc:168
↓ 1 callers
Function
show_usage
apps/tcp_native.cc:9
↓ 1 callers
Function
summary
apps/network_simulator.cc:46
↓ 1 callers
Method
time_since_last_segment_received
libsponge/tcp_connection.cc:21
↓ 1 callers
Method
write_count
number of writes
libsponge/util/file_descriptor.hh:98
Method
AckReceived
tests/sender_harness.hh:195
Method
Address
\param[in] addr points to a raw socket address \param[in] size is `addr`'s length
libsponge/util/address.cc:22
Method
AsyncNetworkInterface
Construct from a NetworkInterface
libsponge/router.hh:21
Method
AtEof
tests/fsm_stream_reassembler_harness.hh:107
Method
Buffer
libsponge/util/buffer.hh:20
Method
BufferEmpty
BufferEmpty
tests/byte_stream_test_harness.cc:116
Method
BufferList
libsponge/util/buffer.hh:64
← previous
next →
101–200 of 633, ranked by callers