Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
U
udp sockets testing
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Oleg Dzhimiev
udp sockets testing
Commits
d557dbcb
Commit
d557dbcb
authored
Mar 05, 2019
by
Oleg Dzhimiev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
formatting
parent
ce5a85ee
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
71 additions
and
69 deletions
+71
-69
sender.c
sender.c
+71
-69
No files found.
sender.c
View file @
d557dbcb
...
@@ -108,8 +108,10 @@ int main(int argc, char **argv) {
...
@@ -108,8 +108,10 @@ int main(int argc, char **argv) {
printf
(
"packet: %06d, time: %lu.%06d
\n
"
,
pnum
,
t0
.
tv_sec
,
t0
.
tv_usec
);
printf
(
"packet: %06d, time: %lu.%06d
\n
"
,
pnum
,
t0
.
tv_sec
,
t0
.
tv_usec
);
generate_packet
(
buffer
,
pnum
);
generate_packet
(
buffer
,
pnum
);
// tested
// tested
//res = sendto(fd, (const char *)buffer, strlen(buffer), 0, (const struct sockaddr *) &servaddr, sizeof(servaddr));
//res = sendto(fd, (const char *)buffer, strlen(buffer), 0, (const struct sockaddr *) &servaddr, sizeof(servaddr));
// tested
// tested
//res = write(fd,(const char *)buffer,strlen(buffer));
//res = write(fd,(const char *)buffer,strlen(buffer));
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment